1

I am trying to build an archive for my flutter app on Xcode, bt I do not know why I kept getting this error.

Command PhaseScriptExecution failed with a nonzero exit code

I have my project migrated using the manual migration guildlines for the Xcode 11.4 version. My project runs well on the simulator though but I cannot build the .ipa archive file.

Logs

/Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Kashbase .app/Frameworks/Flutter.framework/Flutter: errSecInternalComponent
Non-fat binary /Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications//Kashbase .app/Frameworks/App.framework/App is not armv7. Running lipo -info:
Non-fat file: /Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications//Kashbase .app/Frameworks/App.framework/App is architecture: x86_64
Command /bin/sh failed with exit code 1
bensofter
  • 760
  • 1
  • 14
  • 27
  • Can you add the build log? Did you try to delete the DerivedData folder and building again? – Sagi Shmuel May 02 '20 at 06:36
  • just added my logs. please review. And yes, I have deleted DerivedData folder severally. – bensofter May 02 '20 at 09:40
  • are you sure you did the migration step by step? it looks like you try to archive with App.framework for simulators, that looks like you are missing the `Thin Binary` step, try to check it and verify you add it after `Embedded Frameworks` section. – Sagi Shmuel May 02 '20 at 20:01

1 Answers1

0

Try this workaround:

Go to

  1. Keychain Access -> Right-click on login -> Lock & unlock again

  2. Xcode -> Clean Xcode project -> Make build again

Keychain Access is a program in your Mac in Utilities. Cmd Tab keychain Access to find it.

You can also try other solutions here if the workaround mentioned above is not working.

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65