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

蓓蓓24IP属地: 上海
字数 208阅读 560

准备

证书,配置文件无误

项目编译没有问题

命令行步骤

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,其它不变

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
0人点赞
更多精彩内容,就在简书APP
"小礼物走一走,来简书关注我"
还没有人赞赏,支持一下
总资产0.302共写了1718字获得3个赞共0个粉丝

被以下专题收入,发现更多相似内容

推荐阅读更多精彩内容