ios 找不到与应用程序标识符匹配的有效配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13226284/
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
valid provisioning profile matching the application's Identifier could not be found
提问by bobsmells
I'm trying to test my app on my device and am hitting the error stating "A valid provisioning profile matching the application's Identifier 'com.mycompany.MyApp' could not be found". I've read many similar posts here on SO but none have been able to help.
我正在尝试在我的设备上测试我的应用程序并遇到错误,指出“找不到与应用程序标识符‘com.mycompany.MyApp’匹配的有效配置文件”。我在 SO 上阅读了许多类似的帖子,但没有一个能够提供帮助。
What I've done so far:
到目前为止我所做的:
created a valid Provisioning Profile on the Provisioning Portal. When I look at the App ID of the profile, it is 10CHARSEED.com.mycompany.MyApp (where 10CHARSEED is obviously the Apple-generated seed id)
downloaded and installed the profile in XCode Organiser, under the device name. XCode has the green tick and tells me it's a Valid Profile.
checked that the Info.plist Bundle Identifier matches this. It does, exactly.
manually looked inside the project.pbxproj file for references to "PROVISION" but there are none (some of the other solutions I found on SO said to remove these lines, but obviously I don't have any to remove).
Quit Xcode and restarted.
removed and re-added the Provisioning Profile in Organiser.
在 Provisioning Portal 上创建了一个有效的 Provisioning Profile。当我查看配置文件的 App ID 时,它是 10CHARSEED.com.mycompany.MyApp(其中 10CHARSEED 显然是 Apple 生成的种子 ID)
在 XCode Organizer 中的设备名称下下载并安装了配置文件。XCode 有绿色勾号并告诉我这是一个有效的配置文件。
检查 Info.plist Bundle Identifier 是否与此匹配。确实如此。
手动查看 project.pbxproj 文件以获取对“PROVISION”的引用,但没有(我在 SO 上找到的其他一些解决方案说要删除这些行,但显然我没有要删除的内容)。
退出 Xcode 并重新启动。
删除并重新添加了管理器中的配置文件。
Any ideas?
有任何想法吗?
回答by bobsmells
Ok, solved. The problem was to do with permissions. I finally found the menu option in the Organiser that says Refresh from Developer Portal (which is strange because the Prov Profile I'd just installed came fromthe portal, so I'm not sure why it would be any different). Anyway I clicked it and it asked for my Apple ID, and then after a minute it came back and said that I didn't have permission to add App IDs and to get an admin from my team to do it. So illogical given that I could install them manually under my account. Anyway, I just got my admin to make my membership also an admin, which he was happy to do because I've been bugging him all day during the provisioning process. After doing that, I again refreshed from portal and it gave no error, then I was able to build and deploy to the device.
好的,解决了。问题与权限有关。我终于在 Organizer 中找到了菜单选项,上面写着从 Developer Portal 刷新(这很奇怪,因为我刚刚安装的 Prov Profile来自门户,所以我不确定为什么会有所不同)。无论如何,我点击它并要求我提供 Apple ID,然后一分钟后它回来说我没有添加 App ID 的权限,也没有让我的团队的管理员来做这件事的权限。鉴于我可以在我的帐户下手动安装它们,所以不合逻辑。无论如何,我只是让我的管理员让我的会员资格也成为管理员,他很乐意这样做,因为我在配置过程中整天都在烦扰他。这样做之后,我再次从门户网站刷新,它没有出现错误,
回答by BonanzaDriver
I'm passing this along for the sake of completeness.
为了完整起见,我正在传递它。
I had tried "bobsmells" (and, sorry to hear that Bob) recommendation, but was still getting the same error. It was a guesstimate on my part to check the Build Settings in Xcode to see if there was anything that stood out as being a possible red flag ...
我曾尝试过“bobsmells”(并且,很遗憾听到 Bob)的建议,但仍然遇到相同的错误。在 Xcode 中检查 Build Settings 以查看是否有任何突出显示为可能的危险信号的内容是我的猜测......
As I had already created and could see my provisioning profile both on Apple's provisioning portal as well as within Xcode's Organizer Devices tab I knew the profile existed, and was in the proper locations (Xcode and the Portal).
因为我已经创建并且可以在 Apple 的配置门户以及 Xcode 的管理器设备选项卡中看到我的配置文件,所以我知道该配置文件存在,并且位于正确的位置(Xcode 和门户)。
I simply went to the Project Navigator > Targets (your_target_name) > Build Settings > Code Signing, and noticed the value was "iPhone Developer" under the "Automatic Profile Selector (Recommended)" heading.
我只是转到 Project Navigator > Targets (your_target_name) > Build Settings > Code Signing,注意到“Automatic Profile Selector (Recommended)”标题下的值为“iPhone Developer”。
The solution was to simply select the "iPhone Developer: (your_name_here)" located under the "iOS Team Provisioning Profile: * (for bundle itendifiers '*') heading.
解决方案是简单地选择位于“iOS 团队配置文件:*(用于捆绑标识符‘*’)标题下的“iPhone 开发人员:(your_name_here)”。
In other words, usethe provision profile I just created. Perform a Clean, Build, then run it. That did the trick.
换句话说,使用我刚刚创建的配置文件。执行 Clean、Build,然后运行它。这就是诀窍。
Hope this helps someone ...
希望这可以帮助某人...
回答by Suraj K Thomas
i had a similar problem,i solved it like this,go to organiser and select provision profile you want to use and from app identifier copy the part from .in(e.g., ".in.appstute.abcd").After this go to project (in blue color),click targets(your project name),go to summary- bundle identifier paste what u have copied here and run.it worked for me.
我有一个类似的问题,我是这样解决的,转到组织者并选择您要使用的配置文件,然后从应用程序标识符中复制 .in 中的部分(例如,“.in.appstute.abcd”)。然后转到项目(蓝色),单击目标(您的项目名称),转到摘要-捆绑标识符粘贴您在此处复制的内容并运行。它对我有用。
回答by Ben Wheeler
i was dealing with this problem forever, and similarly, quitting and reopening xcode and then refreshing from developer portal did the trick. interestingly, i guess because i am using a wildcard app id, i don't have to manually change the bundle id in the xcode project's target.
我一直在处理这个问题,同样,退出并重新打开 xcode,然后从开发人员门户刷新就可以解决问题。有趣的是,我猜因为我使用的是通配符应用程序 ID,所以我不必手动更改 xcode 项目目标中的包 ID。
回答by Free Mason
If you saved your .developerprofile file outside of your project's root directory, just move it back in the Finder and then drag the file into XCode's "Project Navigator." Make sure the copy to target checkbox is checked.
如果您将 .developerprofile 文件保存在项目根目录之外,只需将其移回 Finder,然后将文件拖到 XCode 的“项目导航器”中。确保选中复制到目标复选框。