inHouse 与 inHouse 之间的冲突appStore 分发配置文件

发布于 2024-12-01 07:30:21 字数 376 浏览 0 评论 0原文

我们有 appStore 版本和应用程序的发行配置文件。一种用于内部分发。两者具有相同的公司名称。我们现在遇到的问题是,当我们尝试构建分发时,我们收到错误:

[BEROR]CodeSign error: Certificate identity 'iPhone Distribution: OurCompanyName' appears more than once in the keychain. The codesign tool requires there only be one.

我们如何解决这个问题?

编辑:我们用来签名的 mac 用于持续集成(通过 Bamboo),因此它意味着无人值守的构建。 这使得切换用户帐户变得不可能......

We have a distribution profile for appStore releases & one for inHouse distribution. Both have identical Company names. The problem we encounter now is that when we try and build for distribution, we get the error:

[BEROR]CodeSign error: Certificate identity 'iPhone Distribution: OurCompanyName' appears more than once in the keychain. The codesign tool requires there only be one.

How do we fix this?

Edit: The mac we're using to sign is used for continuous integration (via Bamboo), so it's meant to build unattended.
This makes switching user accounts an impossibility...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半透明的墙 2024-12-08 07:30:21

解决方案:
我已将所有与应用程序商店相关的内容放入登录钥匙串中,并将企业内容放入单独的钥匙串文件中。

在构建脚本中,我在这些之间切换如下:

    # 1. Only activate the System and either the Appstore(=login) or Enterprise keychain.
security list-keychains -s $KEYCHAIN_NAME $SYSTEM_KEYCHAIN

# 2. Loop through App Schema's
for APP_SCHEME in ${APP_SCHEMES[@]}; do
    echo "--=  Processing $APP_SCHEME  =--"
    xcodebuild -scheme "${APP_SCHEME}" archive
done ### Looping through App Schema's

# 3. Restore login & system keychains
security list-keychains -s $APPSTORE_KEYCHAIN $ENTERPRISE_KEYCHAIN $SYSTEM_KEYCHAIN

Solution:
I've put all the appstore related stuff in the login keychain, and the enterprise stuff in a seperate keychain file.

In the buildscript, I switch between those as follows:

    # 1. Only activate the System and either the Appstore(=login) or Enterprise keychain.
security list-keychains -s $KEYCHAIN_NAME $SYSTEM_KEYCHAIN

# 2. Loop through App Schema's
for APP_SCHEME in ${APP_SCHEMES[@]}; do
    echo "--=  Processing $APP_SCHEME  =--"
    xcodebuild -scheme "${APP_SCHEME}" archive
done ### Looping through App Schema's

# 3. Restore login & system keychains
security list-keychains -s $APPSTORE_KEYCHAIN $ENTERPRISE_KEYCHAIN $SYSTEM_KEYCHAIN
纸短情长 2024-12-08 07:30:21

使用两个不同的 Mac 用户帐户(不同的登录名)来保存两组不同的证书和规定(两个不同的钥匙串等)。从共享存储库中检查源代码,并在适当的用户帐户中进行最终构建。

Use two different Mac User accounts (different logins) to hold the two different sets of Certificates and provisions (two different keychains, etc.). Check the source code out from a shared repository, and do the final builds in the appropriate User accounts.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文