I'm busy working on a Jenkins build that will create iOS apps. I managed to create an archive with this command:
xcodebuild archive -archivePath build/app.xcarchive
Now I am trying to export this archive with the name of the output file , but cannot make it work. In the example below, I need an output file called app.ipa, but all I get is a folder called app.ipa with an ipa file inside the name .ipa
xcrun xcodebuild -exportArchive -exportPath build/app.ipa -archivePath build/app.xcarchive/ -exportOptionsPlist exportOptions.plist Outputs a file /build/app.ipa/<projectname>.ipa
The apple documentation for XCodeBuild says that you can specify the output path, including the file name:
-exportPath path Specifies the destination for the exported product, including the name of the exported file.
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html
The reason for this is that I would like to save the assembly generator so that any project that I submit through it would lead to app.ipa without me to keep track of project names and different output files, etc.
source share