Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The process exited with exit code 255 #166

Open
OLavrik opened this issue Apr 5, 2023 · 5 comments
Open

The process exited with exit code 255 #166

OLavrik opened this issue Apr 5, 2023 · 5 comments

Comments

@OLavrik
Copy link

OLavrik commented Apr 5, 2023

Hi everyone!
I try to run source code from example/lib/main.dart in a separate project (from scratch) (revision number ecf8c1dfd9606f9520d9405c11b34fa0502d8798).
Window builds, but I get a message: the process exited with exit code 255.

Could you, please, help with this?

Screenshot 2023-04-05 at 12 49 37

If I try run example/lib/main.dart inside xterm.dart from updated master brach I get:

Launching lib/main.dart on macOS in debug mode...
Running pod install...
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

    Finding Podfile changes
      A macos_window_utils
      R flutter_acrylic
      - FlutterMacOS
      - flutter_pty

    Fetching external sources
    -> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`
    -> Fetching podspec for `flutter_pty` from `Flutter/ephemeral/.symlinks/plugins/flutter_pty/macos`
    -> Fetching podspec for `macos_window_utils` from `Flutter/ephemeral/.symlinks/plugins/macos_window_utils/macos`

    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
    [!] CocoaPods could not find compatible versions for pod "macos_window_utils":
      In Podfile:
        macos_window_utils (from `Flutter/ephemeral/.symlinks/plugins/macos_window_utils/macos`)

    Specs satisfying the `macos_window_utils (from `Flutter/ephemeral/.symlinks/plugins/macos_window_utils/macos`)` dependency were found, but they required a higher minimum deployment target.

    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
    <internal:kernel>:90:in `tap'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:682:in `attempt_to_activate'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/resolver.rb:94:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:422:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:162:in `install!'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `load'
    /opt/homebrew/Cellar/cocoapods/1.12.0/libexec/bin/pod:25:in `<main>'

Exception: Error running pod install
@bishaladhikari
Copy link

bishaladhikari commented Apr 11, 2023

@OLavrik

#147 (comment) This solved it on my case.

This is my pubspec.yaml.

image

if you are on m1 then run this inside your macos directory.
arch -arm64 pod install
Make sure your Podfile has
platform :osx, '10.15'

image

@tes735
Copy link

tes735 commented Apr 21, 2023

I'm also getting this, but in my case, I'm on an intel mac.

@bishaladhikari
Copy link

bishaladhikari commented Apr 21, 2023

I'm also getting this, but in my case, I'm on an intel mac.

@tes735
If its an intel mac, after changing Podfile platform version platform :osx, '10.15', you can just simply run pod install inside ur macos directory.
To resolve the error 255 issue, you only have to remove sandbox from your "macos/Runner/DebugProfile.entitlements" file like this comment suggested here #147 (comment) and you are good to go.

@OLavrik
Copy link
Author

OLavrik commented May 11, 2023

@bishaladhikari Thanks for your attention!!

This helps me:
Remove:

<key>com.apple.security.app-sandbox</key>
<true/>

@ravipiplani
Copy link

ravipiplani commented Sep 18, 2023

@OLavrik this solves my issues for debugging and creating a release build. But I am not able to upload the app to appstoreconnect. If I remove this key, it is giving the error "Asset Validation Failed". Apparently, Apple has made it mandatory to enable the app-sandbox.

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants