I have two project which I build based on the same Rake script, which internally uses XCode build.
Building it with xcodebuild -archivePath
(ARCHIVE succeeds), then I package app with xcodebuild -exportArchive
.
The problem is that first project succeeds all steps, but second is failing on xcodebuild -exportArchive
because xcarchive
is malformed.
I have compared these two archives and malformation is caused by missing Info.plist
inside archive.
When I prepared manually such Info.plist
and put it into xcarchive
, then I was able to package app without problems.
Any clues why XCode build doesn't produce Info.plist
inside xcarchive
file?
What is an XCARCHIVE file? Application archive created by Xcode, Apple's development IDE for Mac OS X and iOS applications; stores all application files in a format that can be submitted to the App Store for review; contains a digital signature identifying the developer.
Open the Archives folder in Finder: Library > Developer > Xcode > Archives.
Archive your App In Xcode with your project open, select the simulator (button near the top of the window next to your project name, typically named as a specific type of iPhone) – change it to Generic iOS Device. Open the Product menu and choose Archive. You will see the archive information. Click Validate App.
@diidu's comment to this questions was the solution to my problem, that I believe was the same as @Fishman's. Adding CONFIGURATION_BUILD_DIR (and removing use of SYMROOT) from my build scripts caused the Info.plist to be written in the archive, and then export succeeded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With