移动端开发技术专题

iOS命令打包

2018-07-27  本文已影响0人  多情刀客无情刀

一、命令行打Debug版本

1、clean

xcodebuild -workspace/Users/rowena/Desktop/LuoWeiYa-iOS/LuoWeiYa.xcworkspace -scheme XingFu-configuration Debug clean

/Users/rowena/Desktop/LuoWeiYa-iOS/ 该路径根据实际路径配置

2、build

xcodebuild -workspace /Users/rowena/Desktop/LuoWeiYa-iOS/LuoWeiYa.xcworkspace-scheme XingFu -configuration Debug

/Users/rowena/Desktop/LuoWeiYa-iOS/ 该路径根据实际路径配置

3、archive

xcodebuild archive -workspace/Users/rowena/Desktop/LuoWeiYa-iOS/LuoWeiYa.xcworkspace -scheme XingFu-configuration Debug -archivePath/Users/rowena/Desktop/LuoWeiYa-iOS/XingFu-Debug.xcarchive

/Users/rowena/Desktop/LuoWeiYa-iOS/ 该路径根据实际路径配置

/Users/rowena/Desktop/LuoWeiYa-iOS/XingFu-Debug.xcarchive该路径自己设置,可以随意设置

4、打包ipa

xcodebuild-exportArchive  -archivePath/Users/rowena/Desktop/LuoWeiYa-iOS/XingFu-Debug.xcarchive -exportPath/Users/rowena/Desktop/LuoWeiYa-iOS/XingFuDebug -exportOptionsPlist/Users/rowena/Desktop/LuoWeiYa-iOS/ExportOptions/XingFu-Debug.plist

/Users/rowena/Desktop/LuoWeiYa-iOS/XingFu-Debug.xcarchive该路径要和3中的路径要保持一致

/Users/rowena/Desktop/LuoWeiYa-iOS/XingFuDebug该路径是导出IPA文件的路径,可以自己设置

/Users/rowena/Desktop/LuoWeiYa-iOS/该路径根据实际路径设置

二、打Release包既是把Debug改成Release

上一篇下一篇

猜你喜欢

热点阅读