Xcode6之后打包IPA只有拥有证书还不够,还需要登陆账号。
使用xcodebuild可以绕过账号
第一:clean
xcodebuild clean -projecttest.xcodeproj
-configuration Release -alltargets
第二:生成xcarchive文件
xcodebuild archive -projecttest.xcodeproj
-secheme test -archivePath/Users/zhutc/Desktop/test.xcarchive(你想要保存的路径)
第三:生成IPA
xcodebuild -exportArchive -archivePath/Users/zhutc/Desktop/test.xcarchive(上一步保存的文件路径)
-exportPath/Users/zhutc/Desktop/test(导出IPA的路径) -exportFormatipa -exportProvisioningProfile
“testAPPProvisionfile”
打包好了IPA可以上传到fir.im上经行测试。