我们正在为iOS构建设置一个带有MacOS节点的Continuous Deployment服务器。构建本身正常工作。但是,我们在签署应用程序时遇到了困难。由于我们想在动态增长的测试池中进行测试,我们目前正在使用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.}"
由于此故障可能是基于证书/配置文件,这就是我们创建其中两个的方法。
问题:
答案 0 :(得分:0)