iOS xcodebuild 打包

xcodebuild 用命令行直接打包工程文件。以下是自己的工程打包代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Remove archive and ipa file
rm -rf $PWD/xpkUISdk.xcarchive
rm -rf $PWD/xpkUISdk.ipa
# Create an archive
xcodebuild -project ./xpkUISdk.xcodeproj -configuration Release CODE_SIGN_IDENTITY="iPhone Distribution: Beijing RuiDongTianDi Information Tech. LTD (K8UMEY246Y)" PROVISIONING_PROFILE="68673951-0f6d-4ebe-9c07-fff0cb23aa91" -scheme xpkUISdk -archivePath $PWD/xpkUISdk.xcarchive archive
# Create the IPA file from the archive
xcodebuild -exportProvisioningProfile "56show_all_dis" -exportArchive -exportFormat IPA -archivePath $PWD/xpkUISdk.xcarchive -exportPath $PWD/xpkUISdk.ipa CODE_SIGN_IDENTITY="iPhone Distribution: Beijing RuiDongTianDi Information Tech. LTD (K8UMEY246Y)"
# Remove archive and ipa file
rm -rf $PWD/快秀.xcarchive
rm -rf $PWD/快秀.ipa
# Create an archive
xcodebuild -project ./快秀/快秀.xcodeproj -configuration Release CODE_SIGN_IDENTITY="iPhone Distribution: Beijing RuiDongTianDi Information Tech. LTD (K8UMEY246Y)" PROVISIONING_PROFILE="7f2263b2-97d4-431b-b647-f3bac08822ec" -scheme 快秀 -archivePath $PWD/快秀.xcarchive archive
# Create the IPA file from the archive
xcodebuild -exportProvisioningProfile "DIstribution_KX_APNS" -exportArchive -exportFormat IPA -archivePath $PWD/快秀.xcarchive -exportPath $PWD/快秀.ipa CODE_SIGN_IDENTITY="iPhone Distribution: Beijing RuiDongTianDi Information Tech. LTD (K8UMEY246Y)"