- 编译打包命令:
1
xcodebuild archive -workspace xxxx.xcworkspace -scheme pppp -configuration Release -archivePath ../export/xxxx.xcarchive
其中xxxx为工程名称,pppp为所用的profile的名称(不带后缀)
- 生成ipa文件
1
xcodebuild -exportArchive -archivePath ../export/xxxx.xcarchive -exportPath ../export/ -exportOptionsPlist ExportOptions.plist
其中ExportOptions.plist文件可以在你手动打包ipa后,ipa文件的同级目录中找到