我们正在为iOS构建设置一个具有MacOS节点的连续部署服务器。构建本身正在正常工作。然而,我们在签署应用程序时遇到了困难。由于我们希望在动态增长的测试池中进行测试,我们目前正在使用TestFlight (集成到iTunesConnect中)。目前,这是通过XCode-GUI完成的,并且工作非常好。由于我们希望将手动进程移动到CD服务器,这需要通过命令行来完成。
目前为止有什么?
xcodebuild archive \ -project $xcodeproj.xcodeproj \ -scheme $xcodeproj \ -archivePath $xcodeproj.xcarchive \ CODE_SIGN_IDENTITY="$common_name"
xcodebuild -exportArchive \ -archivePath $xcodeproj.xcarchive \ -exportPath $xcodeproj \ -exportFormat ipa \ -exportProvisioningProfile "$provisioning_profile"
/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool \ --validate-app \ -f $build_dir_ios/project/$ipa_file \ -u $testflight_user \ -p $testflight_pass
然而,验证告诉我,我的配置文件是不正确的。验证的响应如下。
2015-12-04 18:53:30.308 altool[63218:8786237] *** Error: Unable to validate archive '/Users/deploy/jenkins/workspace/***/build/ios/project/***.ipa': ( "Error Domain=ITunesConnectionOperationErrorDomain Code=1176 \"Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal..\" UserInfo=0x************ {NSLocalizedRecoverySuggestion=Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.., NSLocalizedDescription=Unable to process application at this time due to the following error: Invalid Provisioning Profile. The provisioning profile included in the bundle *** [Payload/***.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.., NSLocalizedFailureReason=iTunes Store operation failed.}"
由于这个失败可能是基于证书/供应配置文件的,所以我们就是这样创建这两个配置文件的。
问题:
发布于 2015-12-07 21:32:22
https://stackoverflow.com/questions/34096279
复制相似问题