xcode 配置文件与应用程序标识符不匹配

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/853253/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:01:18  来源:igfitidea点击:

Profile doesn't match application identifier

iphonexcodecode-signing

提问by user84124

I have just created a AdHoc distribution provisioning profile for the app id 49776ZQRBG.com.gfeed.ride I have the Bundle ID in the info.plist set to this, yet this provisining profile in the project settings is greyed out and states

我刚刚为应用程序 ID 49776ZQRBG.com.gfeed.ride 创建了一个 AdHoc 分发配置文件,我将 info.plist 中的 Bundle ID 设置为此,但项目设置中的此配置文件呈灰色并显示

"profile doesn't match application identifier '49776ZQRBG.com.gfeed.ride'"

“个人资料与应用程序标识符‘49776ZQRBG.com.gfeed.ride’不匹配”

If I look at the profile in the organizer within XCode it gives me the same App Identifier as whats in my plist.

如果我在 XCode 中查看组织器中的配置文件,它会为我提供与 plist 中相同的应用程序标识符。

Is there something else I am missing? Is the application identifier different to the bundle identifier?

还有什么我想念的吗?应用程序标识符与包标识符不同吗?

回答by Chris Lundie

Usually you would use just "com.gfeed.ride" as your identifier, and XCode will automatically take care of the "49776ZQRBG" part.

通常你只会使用“com.gfeed.ride”作为你的标识符,XCode 会自动处理“49776ZQRBG”部分。

回答by OhioDude

When I got this error here is what I missed and corrected.

当我在这里遇到这个错误时,我错过并更正了。

  1. Check that you have your Entitlements.plist file created and configured.
  2. Check info.plist and ensure that your application name is correct.
  1. 检查您是否创建并配置了 Entitlements.plist 文件。
  2. 检查 info.plist 并确保您的应用程序名称正确。

It's probably best to just go through the directions off of the iPhone dev site on apple. Same place you created your provision profiles.

最好只是通过苹果上的 iPhone 开发网站的指示。您创建供应配置文件的位置相同。

Edit: Came across this on another post on this site. It's a link with more complete instructions than I have time to type.

编辑:在本网站的另一篇文章中遇到了这个问题。这是一个比我有时间输入更完整说明的链接。

http://furbo.org/2008/08/06/beta-testing-on-iphone-20/

http://furbo.org/2008/08/06/beta-testing-on-iphone-20/

回答by Marcin Skoczylas

it's bug from Apple, it appears when you add automatically device via Organizer. solution: never add device via Organizer.

这是 Apple 的错误,当您通过管理器自动添加设备时会出现该错误。解决方案:永远不要通过管理器添加设备。