学习自动打包

1.首先xcodebuild -list看下Schemes
2.xcodebuild -workspace wcworkspace路径 -scheme 刚list里面的schemes
例如xcodebuild -workspace /****//Desktop/wang//.xcworkspace -scheme ***
3.xcrun -sdk iphoneos PackageApplication -v 刚xcodebuild的路径 -o 你需要生成ipa的路径
例如xcrun -sdk iphoneos PackageApplication -v /
//Library/Developer/Xcode/DerivedData//Build/Products/Debug-iphoneos/.app -o /Users//Desktop/resleaseIpa/**.ipa
4.如果遇到xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH则看http://blog.csdn.net/lcg_ryan/article/details/70242742
首先下载PackageApplication然后执行
二条命令1.sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
2.chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
上面的都是手动用命令打包,自动打包下载https://github.com/wangsijiazu1/XcodeAutoBuild

你可能感兴趣的:(学习自动打包)