I'm trying to build an IOS app from the command line instead of through Xcode it's been an uphill struggle. My project builds fine in Xcode by going to Product -> Archive, but when I try to do what I think is the same thing in the Terminal with xcodebuild
, it fails due to some missing header files.
How do I find out what actually happens when I click Archive?
Alternatively, if anyone can spot where my error is, the command I think should be working is:
xcodebuild -workspace MyApp.xcworkspace -scheme MyApp -configuration Beta -destination 'generic/platform=iOS' -archivePath <path to xcarchive file> archive