手动更改$(AppIdentifierPrefix)属性? [英] Changing manually $(AppIdentifierPrefix) property?

查看:676
本文介绍了手动更改$(AppIdentifierPrefix)属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Apple商店上传了应用程序。现在我正在开发更新版本。但是,在处理现有项目时,我创建了具有不同名称的新项目。当我完成后,我更改了名称和包标识符以匹配现有的应用程序。

I had application uploaded on apple store. Now I am developing update version. But instead on working on existing project, i created new project with different name. When i finished i changed name and bundle identifier to match existing app.

我尝试上传应用程序以测试航班,但我收到错误

I tried uploading app to test flight but i got error

"Invalid IPA: The keychain-access-group in the embedded.mobileprovision and your binary don't match."

所以我开始浏览网络以寻求答案......我提出的是启用权利。我做了,但没有用...然后我编辑了权利,改变了这个:

So I started browsing net for answers... What I have come up is to enable entitlements. I did, but to no avail... Then i edited entitlements, changing from this:

$(AppIdentifierPrefix)com.xxxx

到此:

12HJ2312.com.xxxx (the number is number of prefix from developer portal)

它有效,我可以上传。世界再次变得美好。或者是吗?我仍然不明白为什么我要改变它。从哪里

And it worked, i could upload. And the world was fine once again. Or was it? I still don't understand why I had to change this. From where is

$(AppIdentifierPrefix)

是红色的?我认为钥匙串是红色的,但似乎没有,因为钥匙串是我输入的相同值。那么我怎么能看到这个值,它在哪里绘制它的内容呢?

is red? I thought is is red from keychain, but it seems not, because in keychain is the same value I entered. So how can i see this value, and where does it draw its contents?

推荐答案

应用程序标识符前缀在配置中指定您正在使用的个人资料在finder中找到配置文件。为此,在Xcode中,转到窗口>管理器。在组织者中,右键单击配置文件,然后选择在Finder中显示配置文件。在TextEdit或其他文本编辑器中打开文件,你会看到类似于里面的东西,在中间某处(搜索权利)。

The app identifier prefix is specified in the provisioning profile you are using. Locate the provisioning profile in finder. To do that, in Xcode, go to Window>Organizer. In organizer, right click on the provisioning profile and select 'Reveal Profile in Finder'). Open the file in TextEdit or some other text editor and you will see something similar to this inside , somewhere in the middle (search for "Entitlements").

<key>Entitlements</key>
<dict>
    <key>application-identifier</key>
    <string>A1B2C3D4E5.com.example.*</string>
    <key>get-task-allow</key>
    <false/>
    <key>keychain-access-groups</key>
    <array>
        <string>A1B2C3D4E5.*</string>
    </array>
</dict>

此案例中的应用标识符前缀为A1B2C3D4E5

The app identifier prefix in this case is A1B2C3D4E5

这篇关于手动更改$(AppIdentifierPrefix)属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆