XCode 中没有具有配置文件的身份
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16971543/
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
No Identity with Provisioning Profile in XCode
提问by tsm
I'm trying to get my XCode to run apps on my iPhone.
我正在尝试让我的 XCode 在我的 iPhone 上运行应用程序。
A while ago I tried to do that just from within XCode (knowing nothing), and it complained about how my Apple ID wasn't set up with a developer account. Fair enough.
不久前,我尝试仅在 XCode 中执行此操作(一无所知),但它抱怨我的 Apple ID 未设置开发者帐户。很公平。
Now I do have a developer account (I'm a member of an organization). As soon as I got the enrollment email I followed their instructions about setting up the certificates and adding it to my keychain and whatnot.
现在我有一个开发者帐户(我是一个组织的成员)。收到注册电子邮件后,我立即按照他们的说明设置证书并将其添加到我的钥匙串等等。
Then I followed theseinstructions to try to get XCode set up. When I got to the part about using my device for development, that button wasn't there. But as the instructions say:
然后我按照这些说明尝试设置 XCode。当我谈到使用我的设备进行开发的部分时,那个按钮不存在。但正如说明所说:
If the device was used for development in the past, the “Use for Development” button may not appear. If this happens, click “Add to Portal” at the bottom of the screen instead.
如果设备过去用于开发,则“用于开发”按钮可能不会出现。如果发生这种情况,请单击屏幕底部的“添加到门户”。
So I clicked "Add to Portal", a provisioning profile appeared in the list, and everything seemed good. I then proceeded to the "Code Sign Your App" section. This is what I see:
所以我点击了“添加到门户”,一个配置文件出现在列表中,一切看起来都很好。然后我继续到“代码签名你的应用程序”部分。这是我看到的:
I expected there to be a section for iOS Team Provisioning Profile: *
or something. And, of course, this means that when I try to run my app it fails with a code signing error.
我预计会有一个部分用于iOS Team Provisioning Profile: *
或某事。而且,当然,这意味着当我尝试运行我的应用程序时,它会因代码签名错误而失败。
I've poked around with deleting and re-adding stuff, but this is where I always get stuck. I can provide more information, I just...don't know what you want. How do I proceed?
我一直在删除和重新添加东西,但这就是我总是卡住的地方。我可以提供更多信息,我只是......不知道你想要什么。我该如何进行?
Thanks.
谢谢。
回答by ecsos
You can try CMD Shift 2, going to the Devices tab, and refresh the provisioning profiles and/or the team. It should ask you to log in - and hopefully will update your profile for you.
您可以尝试 CMD Shift 2,转到“设备”选项卡,然后刷新配置文件和/或团队。它应该要求您登录 - 并希望会为您更新您的个人资料。
If it doesn't, it's the same every time. Your device needs to be added to the devices on the portal by a team admin. You said you have a certificate. If not using the team provisioning profile, you have to add your certificate to the profile you are using. Then make sure to quit xcode and reopen it after the changes.
如果没有,每次都是一样的。您的设备需要由团队管理员添加到门户上的设备。你说你有证书。如果不使用团队配置文件,则必须将证书添加到正在使用的配置文件中。然后确保退出 xcode 并在更改后重新打开它。
回答by Engnyl
Download the certificate and mobile provisioning profile from the developer site. Then double click them to add to your keychain / organizer.
从开发人员站点下载证书和移动配置文件。然后双击它们以添加到您的钥匙串/组织者。