xcodebuild 命令行打包(项目使用cocoapods,补充不使用cocoapods时打包)

准备

证书,配置文件无误

项目编译没有问题

命令行步骤

1.clean,保证不会出现些未知的错误

xcodebuild clean -workspace -scheme -configuration

//实际操作

xcodebuild clean -workspace /Users/hand/Documents/tongyi-ios-upgrade/TongYi-UP.xcworkspace -scheme TongYi-UP -configuration Release

2. archive

xcodebuild archive -workspace -scheme -archivePath

//实际操作

xcodebuild archive -workspace /Users/hand/Documents/tongyi-ios-upgrade/TongYi-UP.xcworkspace -scheme TongYi-UP -archivePath  /Users/hand/Desktop/App/archive/TongYi-UP.xcarchive

3./Users/hand/Desktop/App文件下创建一个fcapp_config.plist文件 

4.配置导包

xcodebuild -exportArchive -archivePath -exportPath -exportOptionsPlist

//实际操作

xcodebuild -exportArchive -archivePath /Users/hand/Desktop/App/archive/TongYi-UP.xcarchive -exportPath /Users/hand/Desktop/App/ipa/ -exportOptionsPlist /Users/hand/Desktop/App/fcapp_config.plist

在项目不使用cocoapods时,打包命令在1.clean和2.archive  这个描述-workspace改为-project,其它不变

你可能感兴趣的:(xcodebuild 命令行打包(项目使用cocoapods,补充不使用cocoapods时打包))