gpt4 book ai didi

ios - 临时省份没有 beta-reports-active 属性。配置文件。管理多个的最佳策略

转载 作者:可可西里 更新时间:2023-11-01 03:31:41 25 4
gpt4 key购买 nike

我们通过 testflight 分发的 IOS 临时构建最近停止安装。

我们遇到“无法下载”问题 ( http://help.testflightapp.com/customer/portal/articles/829652-received-an-unable-to-download-application-message-what-does-this-mean- )。

xcode 日志中的错误是

Dec 8 15:50:09 ipad3 installd[34] : entitlement 'beta-reports-active' has value not permitted by provisioning profile 'TestFlight WWTK ALL Projects'

我们已经确定了根本原因(省份资料与权利不匹配),但不确定如何继续。以下是详细信息:

  1. 我们的开发者门户包含多个分发配置文件,但特别是一个临时的和一个由 x-code 管理的分发

  2. 临时配置文件,即使通过 http://developer.apple.com 生成强制,永远不会获得 beta-reports-active 属性。我们怀疑这是正常的,但还没有找到证实。xcode 管理的 ios 分发版将属性设置为 true

  3. 我们的构建过程使用 ios 分发配置文件进行构建。作为此步骤的一部分,xcode 会自动生成一个与第一个分发配置文件匹配的授权文件。因此,捆绑的授权文件包含 beta-reports-active 属性:

    builtin-productPackagingUtility /Applications/Xcode5.1.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/Entitlements.plist -entitlements -format xml -o /Users/Shared/Jenkins/Home/jobs/game_addtetris-master_iOS/workspace/target/addtetris_ios/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/addtetris.xcent
  4. 我们的构建使用我们的临时证书对生成的 ipa 重新签名,并将生成的 IPA 上传到 testflight

    /usr/bin/xcrun -sdk iphoneos PackageApplication -v /Users/Shared/Jenkins/Home/jobs/game_addtetris-master_iOS/workspace/target/addtetris_ios/build/Unity-iPhone.build/addtetris.app -o /Users/Shared/Jenkins/Home/jobs/game_addtetris-master_iOS/workspace/target/addtetris_ios/build/Unity-iPhone.build/addtetris-Release-addtetris_1.x_253.ipa --embed /Users/Shared/Jenkins/Home/local/embedded.mobileprovision --sign "iPhone Distribution: WeWantToKnow AS"

所以我们现在有一对相互矛盾的省份。个人资料和权利。一个有 beta-reports-active,一个没有。

我们应该能够通过在某处添加以下构建后脚本来解决这个问题(我们已经验证它创建了正确的 IPA)

/usr/libexec/PlistBuddy -c "Delete :beta-reports-active" "${TARGET_TEMP_DIR}/${PRODUCT_NAME}.app.xcent"
ipa=`ls $BUILT_PRODUCTS_DIR/*.ipa`
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${CODESIGNING_FOLDER_PATH}" -o "${ipa}" --embed "${EMBEDDED_MOBILEPROVISION}" --sign "${CODE_SIGN_IDENTITY}"

这在某些方面与 Forcing code signing refresh in Xcode 非常相似

这需要稍微改变我们的工具链(例如 jenkins xcode 插件)

但我们很乐意更好地理解根本问题,看看是否有更好的解决方案。特别是 ?

If necessary, Xcode creates a distribution certificate and an ad hoc provisioning profile for you. The name of the ad hoc provisioning profile beings with the text XC:.

然而那些 AdHoc prov。配置文件不再包含 UDID,因此它们看起来很可疑。

  • 我们的工作流程是否太脆弱而无法开始?例如。我们是否应该从一开始就使用我们的 ad-hoc 进行签名?

  • 有更好的主意吗?

最佳答案

我的大部分问题都得到了答案:

  • 是的,临时配置文件将不包含 beta-reports-active 属性。经试飞支持确认

  • 我已经迁移了我们的 jenkins xcode 插件以使用导出的 developerProfiles,结合 xcode 管理配置文件的方式,它有助于正确签署 IPA,而无需退出它。无论如何,以这种方式设置服务器更加一致和安全

  • 至于 xcode 如何管理配置文件,我对 xcode preferences sync with developer.apple.com 功能还没有完全理解。即使在强制刷新/同步客户端数据之后,它看起来也有些不完整。缺少临时省份。个人资料等。进一步调查。

希望对某人有所帮助。

关于ios - 临时省份没有 beta-reports-active 属性。配置文件。管理多个的最佳策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27364411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com