Build Archive
suggest changeExport an IPA from an existing archive:
xcodebuild -exportArchive -exportFormat ipa \
-archivePath "/Users/username/Desktop/MyiOSApp.xcarchive" \
-exportPath "/Users/username/Desktop/MyiOSApp.ipa" \
-exportProvisioningProfile "MyCompany Distribution Profile"
-exportFormat and -exportProvisioningProfile are the older xcodebuild -exportArchive options.
Build for the simulator:
xcodebuild -project <ProjectName.xcodeproj>
-scheme <ProjectName>
-sdk iphonesimulator
-configuration Debug
-destination "platform=iOS Simulator,name=<Device>,OS=9.3"
clean build
This runs a simulator build. It does not create an .xcarchive. Archiving uses xcodebuild archive, or Product > Archive in Xcode.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents