Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild exportArcive- How to customize the default IPA file name while exporting from command line?

I am using xcodebuild command line tool to create an archive and then export as IPA file, for my iOS project.

By default, while using xcodebuild -exportArchive, it creates the IPA file which has the same label as the scheme selected for building.

Is there anyway to change the output IPA file name while using xcodebuild -exportArchive from command line?

Any help will be greatly appreciated. Thanks.

like image 476
Rashmi Ranjan mallick Avatar asked Nov 29 '16 11:11

Rashmi Ranjan mallick


People also ask

How do I export an Xcode archive?

The Step archives your Xcode project by running the xcodebuild archive command and then exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared, installed on test devices, or uploaded to the App Store Connect.


1 Answers

Another way if that's not working is to set the customArchiveName (see this answer) https://stackoverflow.com/a/43809933

like image 164
StackRunner Avatar answered Oct 02 '22 17:10

StackRunner