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.
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
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
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.
Run flutter build ipa
Once build is done. Open Runner.xcarchive
Open Runner.xcarchive with Xcode
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
Related
While Building the app for iOS Distribution in flutter I faced the below issue with the build, I tried many things available on google related to this issue but no resolution yet.
How am I supposed to deploy flutter application to iOS Appstore?
Warning: unable to build chain to self-signed root for signer "iPhone Distribution: Mark Davids (*********)"
/Users/mark/Downloads/chat_app-master 2/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App: errSecInternalComponent
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
Encountered error while building for device.
This is a vague error, however my guess is its 1 of two things.
There is Flutter detritus that is blocking your build, which you can fix by running the flutter clean command
Your certificate is invalid. When dealing with this in the past I have found the easiest way to fix it is to open XCode, set the signing to none, purge your certificates and keys from your system, and then re-add them to the keychain.
I have such an error in the organizer while distributing my app. The app builds and works ok in Debug mode on simulator or iPhone. It also Archived but I cannot distribute it via Development distribution from organizer!
ipatool failed with an exception: #<CmdSpec::NonZeroExitException: $ /Applications/Xcode-beta.app/Contents/Developer/usr/bin/python3 /Applications/Xcode-beta.app/Contents/Developer/usr/bin/bitcode-build-tool -v -t /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin --sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -o /var/folders/ls/0vdttqm92zq1rtcsjntc4mxw0000gn/T/ipatool20200210-7826-1kq2c5j/thinned-out/arm64/Payload/CRM\ Dev.app/Frameworks/GoogleUtilities.framework/GoogleUtilities --generate-dsym /var/folders/ls/0vdttqm92zq1rtcsjntc4mxw0000gn/T/ipatool20200210-7826-1kq2c5j/thinned-out/arm64/Payload/CRM\ Dev.app/Frameworks/GoogleUtilities.framework/GoogleUtilities.dSYM --strip-swift-symbols /var/folders/ls/0vdttqm92zq1rtcsjntc4mxw0000gn/T/ipatool20200210-7826-1kq2c5j/thinned-in/arm64/Payload/CRM\ Dev.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
Status: pid 8359 exit 2
Stdout:
SDK path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk
SDK version: 13.4
UPDATE
If I uncheck Rebuild form bitcode then it distributes. But I think it can cause problem later if I want to distribute app to App Store?
need to check the transporter App Apple launches to upload the apps to app Store
https://developer.apple.com/news/?id=10152019a. It's going to help
iOS 13.4 is a beta version. The app store doesn't accept builds created with beta versions.
We've got similar issue, which is described here. No needs to distribute without bitcode. Long story short, there were LLVM instrumentation included, which prevents AppStore processing. I've written a whole blog about XCode 12 and BigSur issues with XCFramework.
To sum up, here is a few required steps to make sure while creating XCFramework for distribution:
Using archive builds is a MUST, release build isn't enough
BUILD_LIBRARY_FOR_DISTRIBUTION must be set to YES
SKIP_INSTALL must be set to NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO to turn off GCC instrumentation and remove them from the binary
CLANG_ENABLE_CODE_COVERAGE = NO to turn off code coverage tools from the binary
Having all of the above helped to solve our preparing and distribution problem and hopefully save you some time if you happened to face same issues as we did.
When I package from XCode via Fabric Plugin a Beta in debug mode, I got an error :
Fabric Archive packaging Error -6
In Xcode I have check code signing manual (or auto same problem) for the app and the widget/extension with valid certificates and provisionning.
I also check that I have all certificates (public/private keys) and provisionning on my keychain.
If I build with fastlane last version 2.58.0, I got the same issue than direcly build from XCode.
Note that without any changes, one day it's work, an other that fails. This is strange.
Any help?
Even if you have the certificates and profiles on your keychain, you may need to refresh them. To do this in Xcode 9, follow the instructions here: https://stackoverflow.com/a/46686725/6543020
Possible duplicate of: Fabric Plugin: Archive Packaging Error: -6 Error re-signing the application for distribution
I am getting the following error when I try to package my application for adhoc distribution. I am building fine - but not able to package. I have a indie seat license.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : CodeSign build/Products/Release-iphoneos/xyz.app
[ERROR] : (1 failure)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/User/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:789:12)
My system -
OS - Mac OSX El-Capitan
Appcelerator - 4.x
Appcelerator - Indie license
What I have done to debug this issue ? after spending a lot of time researching this - I have
rebooted the system several times
appc logout / appc login several times
appc setup to ensure that I have the latest files (I only work on iOS)
revoked all my certificates on developer.
deleted my login-keychain - and rebooted my mac book pro and re-logged in.
deleted all certificated in ~/Library/MobileDevice//
recreated all certifcates on https://developer.apple.com/
ios developer certificates
ios distribution certificates
ios developer provisioning certificates
ios distribution provisioning certificates
for the app ID that is described in tiapp.xml
downloaded all of these - and installed them by clicking on them
I created the csr on my machine new - so I have that also. I also imported that certificates as a private certificates
checked in the "package configuration - manage section" that all of the certificates are accurate - atleast they show up as a the same name.
my App is registered in Appcelerator portal
PLEASE HELP - there is no clear description on what the problem is and how to resolve it.
I know it has been a while for this question but this might help
someone.
I’ve been facing this problem for 2 days now:
[ERROR] : BUILD FAILED
[ERROR] : The following build commands failed:
[ERROR] : CodeSign build/Products/Debug-iphoneos/WYN.
[ERROR] : (1 failure)
What I did to solve it was:
Remove all my certificates from keychain (login and system) and
revoking them from Apple member center.
Remove the provisioning profile associated to my app (Apple member
center).
Create a new certificate.
By default it was put in the system area of key chain (That might be
the problem).
Copy it to the login area of keychain and remove the old one.
Associate the provisioning profile to your app.
Test the app on a device.
It should be fixed!
I just came across this issue and found a simple solution that doesn't involve wiping out everything and starting fresh:
Browse to the Appcelerator project's build/iphone folder.
Open XCode from the *.xcodeproj file
Inside XCode, click on the "General" settings of the app, from the icon at the top of the file hierarchy.
Under "Signing", checkmark the box to allow XCode to "Automatically manage signing".
Build the app once to your test device from within XCode, then exit.
Go back to Appcelerator and do Clean then Build to resolve the issue.
I have a problem with XCode since 2 days.
I upgraded my iOS Developer Account, and now I can't build on my iphone.
I have this when I try to build.
/Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: the codesign_allocate helper tool cannot be found or used
*** error: Couldn't codesign /Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
I tried all solutions on Stackoverflow about certificats, build settings, etc ..., it doesn't work.
If someone know something about it =).
Thank you.
My advice would be to delete everything related to development and distribution certification - all relevant certificates in the keychain, all mobile provisions on disk, and everything at the Member Center - and start the entire process of generating new identities and profiles from scratch.
I upgraded also my iOS Developer Account, and I got the same error in all my Apps when I tried to run them on my Ipad (IOS 11)
This works for me ( I did the samme in all the programs)
choose TARGET
General/Signing : Automatically manage signing
General/Deployment info/Deployment target: change to a lower IOS (I chose 10.0)
General/Deployment info/Deployment info/Devices : Universal
Build cmd B and Run cmd R with destination (your device)
After the error is disappeared: change the Deployment target to IOS 11 and the Device to iPhone/iPad