1

i am trying to build a IOS IPA for generic device, followed all the instructions, added signing certificates, team etc. but i am unable to build the product. any one please help me to resolve this issue.

here is my signing config. checked to automatically managed. added device in developer site.

enter image description here

sent 435785657 bytes received 92 bytes 58104766.53 bytes/sec total size is 435732165 speedup is 1.00 Warning: unable to build chain to self-signed root for signer "Apple Development: ********" /Users/Saif/Library/Developer/Xcode/DerivedData/Runner-bemaxobcrmqabgcgltuauohrwrje/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/myapp.app/Frameworks/App.framework/App: errSecInternalComponent Command PhaseScriptExecution failed with a nonzero exit code

enter image description here

i am just stuck on this error for about 3 days. tried each and every solution available on stackoverflow and apple developer stack.

Flutter : 2.0.1 Xcode : 11.2.1

8
  • 1
    did you try cleaning the build? May 12, 2021 at 9:20
  • yes.... clean build, also manually deleted the folder 'DerivedData' from Xcode directory May 12, 2021 at 9:24
  • try changing a to a dummy package name first and build it! ( it might the Bundle ID is not available issue ) May 12, 2021 at 9:25
  • you have full access to the account, did you do the signining report thingy with your local KeyChain to generate a cert file? May 12, 2021 at 9:28
  • 1
    no for now keep that! just do it with different bundle ID and try an ad-hoc build with it see if the same error comes May 12, 2021 at 9:32

2 Answers 2

0

There's nothing any issue i think, the reason behind this i have an old version of xcode, i just update the xcode for newest version and than its all fine.

2
  • What's your new XCode version? I'm having a similar issue, but with 11.3
    – earlyriser
    Jun 3, 2021 at 4:22
  • do check your macOS version specific xcode release from here xcodereleases.com. in my case i have running macOS catalina and have older version of xcode, so i can only upgrade xcode to 12.4 which catalina could support as mentioned in xcoderelease, by manually downloading the file, everything went fine :D Jun 3, 2021 at 19:56
-1
  1. Run flutter build ipa
  2. Once build is done. Open Runner.xcarchive
  3. Open Runner.xcarchive with Xcode
  4. It'll take you to the Distribute App page so you can upload the app

As per the docs:

https://docs.flutter.dev/deployment/ios#create-a-build-archive-with-xcode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.