准备
证书,配置文件无误
项目编译没有问题
命令行步骤
1.clean,保证不会出现些未知的错误
xcodebuild clean -workspace <workspace_path> -scheme <app_scheme> -configuration <Debug Or Release>
//实际操作
xcodebuild clean -workspace /Users/hand/Documents/tongyi-ios-upgrade/TongYi-UP.xcworkspace -scheme TongYi-UP -configuration Release
2. archive
xcodebuild archive -workspace <workspace_path> -scheme <app_scheme> -archivePath <xcarchive_path>
//实际操作
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 <xcarchive_path> -exportPath <export_ipa_path> -exportOptionsPlist <exportOptionsPlist_path>
//实际操作
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,其它不变
网友评论