iOS Xcode Build & Archive From Command Line Build & Archive

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Build:

xcodebuild -exportArchive -exportFormat ipa \
    -archivePath "/Users/username/Desktop/MyiOSApp.xcarchive" \
    -exportPath "/Users/username/Desktop/MyiOSApp.ipa" \
    -exportProvisioningProfile "MyCompany Distribution Profile"

Archive:

xcodebuild -project <ProjectName.xcodeproj> 
    -scheme <ProjectName> 
    -sdk iphonesimulator 
    -configuration Debug 
    -destination "platform=iOS Simulator,name=<Device>,OS=9.3" 
    clean build


Got any iOS Question?