Repository navigation
"Command PhaseScriptExecution failed with a nonzero exit code" Failed to codesign App.framework/App: resource fork, Finder information, or similar detritus not allowed #80978
Description
Hello,
I have the problem that I can no longer simulate my apps via Xcode, neither on the simulator (any device), nor on the real device.
I constantly get the error code:
Command PhaseScriptExecution failed with a nonzero exit code. note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description
...with different warnings underneath.
The following happened: All projects worked fine. Then I downloaded the package "nfc_manager 3.0.0+1" in addition to my already integrated package "nfc_in_flutter". Since this did not work, I deleted the nfc_manager package again. A short time later, this error occurred. I don't know if it has anything to do with this, but maybe it helps.
Now I can't simulate any of my projects via Xcode.
I have tried every conceivable solution I found on Stack Overflow about this issue - without any success. In addition, I have logged in and logged out of keychain, restarted the mac, and completely uninstalled and re-downloaded Xcode.
Please help.
`nico@Nicos-MBP ios % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.2.0-11.0.pre.215, on Mac OS X 10.15.7 19H524 darwin-x64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)
• No issues found!
nico@Nicos-MBP ios % xcdoe clean
zsh: command not found: xcdoe
nico@Nicos-MBP ios % clean xcode
zsh: command not found: clean
nico@Nicos-MBP ios % flutter clean
Changing current working directory to: /Users/nico/AndroidStudioProjects/corona_impf_it
Cleaning Xcode workspace... 3,4s
Deleting build... 379ms
Deleting .dart_tool... 66ms
Deleting .packages... 0ms
Deleting Generated.xcconfig... 0ms
Deleting flutter_export_environment.sh... 0ms
Deleting Flutter.podspec... 0ms
Deleting .flutter-plugins-dependencies... 1ms
Deleting .flutter-plugins... 0ms
nico@Nicos-MBP ios % flutter run
Changing current working directory to: /Users/nico/AndroidStudioProjects/corona_impf_it
Running "flutter pub get" in corona_impf_it... 936ms
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Running pod install... 10,8s
Running Xcode build...
Xcode build done. 224,7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-Core' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'leveldb-library' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'nanopb' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-C++' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'abseil' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseFirestore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flutter' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Firebase' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro.`
Activity
darshankawar commentedon Apr 23, 2021
@Nico1911
Can you provide
pubspec.yaml,flutter run --verboseand yourios/podfileto properly address this issue ?Thanks.
Create Xcode 12.4 "Command PhaseScriptExecution failed with a nonzero…
Nico1911 commentedon Apr 23, 2021
Of course:
pubspec.yaml:
Podfile:
Nico1911 commentedon Apr 23, 2021
Nico1911 commentedon Apr 23, 2021
flutter run --verbose:
What I could post of the command without it getting "too long":
flutter run --verbose
Nico1911 commentedon Apr 23, 2021
darshankawar commentedon Apr 23, 2021
@Nico1911
Thanks for the details. I used all the plugins you've in my sample app and ran it on iPhone 12 pro max simulator which initially gave me a compile error pointing to
nfc_in_flutterplugin which wasn't the same as you received.But removing that plugin and running
flutter cleanand thenflutter runcompiled and built the app properly without any issues, as below:flutter doctor -v
You said you removed the said plugin, but can you try
flutter cleanand thenflutter runto see if it helps ?Thanks.
Nico1911 commentedon Apr 23, 2021
I do what you said but still got this error:
Do you may have another idea?
62 remaining items
danielgchap commentedon May 27, 2021
marinaharmon commentedon May 27, 2021
danielgchap commentedon May 27, 2021
namchuai commentedon May 28, 2021
ivanchaukn commentedon Jun 8, 2021
still getting the same error after upgrading to Flutter 2.2.1. Already tried manually running xattr -r -d com.apple.FinderInfo . but that still doesn't work. Also tried removing Podfile and Podfile.lock, then run pod install pod upgrade. Nothing works.
jmagman commentedon Jun 8, 2021
@ivanchaukn Can you file a new issue and completely fill out the template? If
xattr -r -d com.apple.FinderInfo .doesn't fix it for you then the 2.2.1 hotfix won't either, since that's all it does. Include:flutter run -v(you'll have to attach it , it's large)roderikpeeters commentedon Jun 8, 2021
Using this gives me the following errors:
xattr: [Errno 13] Permission denied: './.git/objects/a5/965ab8dced71464f52d81becbc8397b4610413'
For a lot of lines. Any idea on how to fix this?
MapleNoise commentedon Jun 8, 2021
@roderikpeeters :
sudo xattr -r -d com.apple.FinderInfo .But not work for me, all my iOS projects are stuck...
Downgrade Flutter to 2.0.6 not resolve too, but it's another problem
jmagman commentedon Jun 8, 2021
@roderikpeeters @MapleNoise
StefanRezk commentedon Jun 21, 2021
thx a lot dude, u saved me
jay2jp commentedon Jul 28, 2021
I've been dealing with this issue for a while now and I'm on the most up-to-date version of flutter. going through my logs i think it's related to the issue #64502. I tried adding the
xattr -r -d com.apple.FinderInfo .But that didn't work and I don't think it was relevant due to being on version 2.2.3. I should probably add that I've been working on this app since flutter 1.4 ish so it does not include sound null safety.Flutter doctor
Packages
verboseLogs.txt
musamaashraf commentedon Jul 29, 2021
This and
flutter cleancommand fixed things for megithub-actions commentedon Aug 12, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.