Export as macOS app using xcodebuild
I have an assembly script that exports an OS X application to a file .app
. This is the equivalent of switching to xcode and archiving, then selecting export and then choosing Export as MacOS Application. The script used to be fine until the flag -exportFormat
was removed from xcodebuild
. Now the script doesn't work at all. I had no luck determining what new flags should be.
I looked at the flag -exportoptionsplist
, but I don't know what to put in my plist, or if it's even the right solution. The relevant lines from the script are given below:
#Archive the app
xcodebuild -workspace '/path/project.xcworkspace' -config Release -scheme 'Some Scheme' -archivePath ./archive archive
#Export the archive as in the APP format
xcodebuild -archivePath archive.xcarchive -exportArchive -exportPath 'exportedApp.app' -exportFormat App
How can I get the result I -exportFormat App
used to provide?
source to share