How to fix Xcode 6.1 error while building IPA
I wish I knew why it works, but here's a fix that worked for me:
Found the fix !
Click on your project > Targets > Select your target > Build Settings
>
Code Signing Resource Rules Path
and add :
$(SDKROOT)/ResourceRules.plist
Why I get error while creating IPA for iOS having Vuforia SDK?
I disabled bitcode
and it could create a build without any issue.
App Crashes when it's running from .ipa file but building on Xcode is working perfectly?
Clean the derived data of xcode and then create the ipa.
iOS builds / ipa creation no longer works from the command line
Apple got back to me with a solution. As of Xcode 7 we should use xcodebuild
instead of PackageApplication
to produce the .ipa file.
xcodebuild has a new -exportArchive option to create an .ipa that works more like Xcode Organizer.
So we should now:
- build an archive with
xcodebuild archive
- create the .ipa with
xcodebuild -exportArchive
We now build the archive like this:
xcodebuild -workspace myApp.xcworkspace -scheme myApp -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/myApp.xcarchive
We now export the .ipa like this:
xcodebuild -exportArchive -archivePath $PWD/build/myApp.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build
These two command create the files build/myApp.xcarchive
and build/myApp.ipa
Note that xcodebuild -exportArchive
requires a -exportOptionsPlist
argument that points to a .plist file with export options. For a complete list of what you can put in that plist, run xcodebuild -help
. The minimal contents of the file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>YOUR_TEN_CHARACTER_TEAM_ID</string>
</dict>
</plist>
In Xcode 9, you now have to specify more details in exportOptions.plist like below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>compileBitcode</key>
<false/>
<key>method</key>
<string>ad-hoc</string>
<key>provisioningProfiles</key>
<dict>
<key>my.bundle.identifier</key>
<string>My Provisioning Profile Name</string>
</dict>
<key>signingCertificate</key>
<string>iPhone Distribution</string>
<key>signingStyle</key>
<string>manual</string>
<key>stripSwiftSymbols</key>
<true/>
<key>teamID</key>
<string>YOURTEAMID</string>
<key>thinning</key>
<string><none></string>
</dict>
</plist>
There's been an error parsing your app's provisioning profile. Ensure you are uploading a validly signed IPA and try again
Go to your Apple Developer Profile and make sure you have an active Apple Developer subscription (your $100 (or your local currency) fee is paid), and you have the correct certificates, and signing installed onto your device, and you have a correct bundle ID linked to each of said certificates, etc. If you made any corrections, create a new .ipa file, and retry the upload process.
There is an option in Xcode under Signing & Capabilities to have Xcode manage your provisioning profile.
Related Topics
Screenshot Showing Up Blank - Swift
Cocoapods: Failed to Connect to Github to Update the Cocoapods/Specs Specs Repo
Uicollectionview Decoration View
Change Language of Alert in Banner of Push Notification
Cannot Set Searchbar as Firstresponder
How to Keep a Round Imageview Round Using Auto Layout
Error: Ld: Library Not Found for -Lpods with Cocoapods
Copy Nsattributedstring in Uipasteboard
How to Debug "Terminated Due to Memory Error"
Firebase with Swift 3 Counting the Number of Children
Pod Install Is Staying on "Setting Up Cocoapods Master Repo"
Why Is Uicollectionviewcell's Outlet Nil
Ios4: How to Use Video File as an Opengl Texture
How to Add an Action to a Button Programmatically in Xcode