一、命令行打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