在 iPhone 上安装应用程序时出现代码签名错误
我已经注册了 Apple 开发者计划。我已成功安装我的配置文件和其他证书。但是,我在安装应用程序进行临时分发时仍然遇到错误。
我对此不确定,但我在 mobileProvision 证书中得到的公司名称为“CXXXXXXXXX.abc-xyz.com”。尽管我在开发者资料中输入了我的公司名称“abcxyz”。
现在,在 info.plist 中,我尝试了许多选项,例如 com.abc-xyz.、com.com.abc-xyz.、com.abc-xyz.com.* 但它们都不起作用。
这是我在安装时遇到的错误:
配置配置文件指定的应用程序标识符“abc-xyz.com”与当前设置“com.abc-xyz.ApplicationName”不匹配
据我所知,我认为问题所在可能在我的公司名称中,因为它包含“-”、“.”和“com”。但除了我的电子邮件地址之外,我从未在任何地方输入过像 abc-xyz.com 这样的名称。即 [email protected]
我不知道我是否遗漏了某些内容。有什么解决办法吗?如果您有任何建议,请帮助。
谢谢。
I have registered for Apple Developer Program. I have installed my provisioning profile and other certificates successfully. But still, I am getting error while installing the app for ad-hoc distribution.
I am not sure about this, but I am getting my company name as "CXXXXXXXXX.abc-xyz.com" in mobileProvision certificate. Although I have entered my company name as "abcxyz" in developer profile.
Now, in info.plist, I have tried many options like com.abc-xyz., com.com.abc-xyz., com.abc-xyz.com.* but none of them works.
Here's the error that I am getting while installing:
Provisioning profile specifies the Application Identifier 'abc-xyz.com' which doesn't match the current setting 'com.abc-xyz.ApplicationName'
As far as I know, I think the problem may be in my company name as it contains '-', '.' and 'com'. But I have never entered name like abc-xyz.com anywhere apart from my email address. i.e. [email protected]
I don't know if I am missing something. Is there any solution for this? Plz help if you have any suggestions.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
info.plist 中的捆绑包标识符应与配置文件的应用程序 ID 匹配。如果您的配置文件的应用程序 ID 为“CXXXXXXXXX.abc-xyz.com”,那么它只会对捆绑包标识符为“abc-xyz.com”的应用程序进行签名,而不是“com.abc-xyz.ApplicationName”。
您需要使配置文件的应用程序 ID 与捆绑包标识符匹配。执行此操作的一种方法是将配置配置文件中的应用程序 ID 设置为“CXXXXXXXXX.com.abc-xyz.ApplicationName”。
您可以使用通配符使配置文件适用于您公司的任何应用程序。 “CXXXXXXXXX.com.abc-xyz.*”将匹配任何以“com.abc-xyz.”开头的包标识符。
为简单起见,我倾向于为临时和开发配置文件使用整个字符串(“CXXXXXXXXX.*”)通配符。
The bundle identifier in your info.plist should match the App ID of the provisioning profile. If your provisioning profile has an App ID of "CXXXXXXXXX.abc-xyz.com" then it will only sign apps with a bundle identifier of "abc-xyz.com", not "com.abc-xyz.ApplicationName".
You need to make the provisioning profile's App ID and the bundle identifier match. One way to do this is to set the App ID in the provisioning profile to "CXXXXXXXXX.com.abc-xyz.ApplicationName".
You can make the provisioning profile work for any app for your company by using a wildcard. "CXXXXXXXXX.com.abc-xyz.*" will match any bundle identifier that starts with "com.abc-xyz.".
For simplicity, I tend to wildcard the whole string ("CXXXXXXXXX.*") for Ad Hoc and Development profiles.
我花了 1 个小时在项目配置中搞乱代码签名身份,但没有成功。在我对目标进行相同的更改后,一切正常。
I lost 1 hour messing around with the Code Signing Identity in my Project configurations with no luck. After I made the same changes to the Target everything worked.