ios 没有任何有效的配置文件包含设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28585821/
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-08-31 04:52:39  来源:igfitidea点击:

None of the valid provisioning profiles include the devices

iosxcode6.1

提问by SandeepAggarwal

I have removed some of the devices from the provisioning profile from apple portal for adhoc distribution and downloaded and installed it in xcode 6. But upon archiving the project it shows the error for missing devices and invalid provisioning profile .enter image description here

我已经从苹果门户的供应配置文件中删除了一些设备以进行临时分发,并将其下载并安装在 xcode 6 中。但是在归档项目时,它显示了缺少设备和无效供应配置文件的错误。在此处输入图片说明

I have wasted 3-4 hours regarding this issue but found no luck. Any kind of help would be greatly appreciated.

我在这个问题上浪费了 3-4 个小时,但没有找到运气。任何形式的帮助将不胜感激。

回答by Perlguy

I just had this error as well. I am not sure if allof these steps are required, but the is exactly what I did to fix it, and it worked for me...

我也刚遇到这个错误。我不确定是否需要所有这些步骤,但这正是我为修复它所做的,它对我有用......

  1. On the device, I removed the provisioning profile that was in General -> Profile.
  2. In Xcode, under window tab open up the "Devices" window. (shift+cmd+2)
  3. Choose the device and copy its identifier
  4. Login to developer.apple.com and go to the "Certificates, Identifiers & Profiles" area
  5. If the device in question is not registered, register it in the "Devices" area. (My device was not registered, so I registered it)
  6. In Xcode preferences under Xcode tab, go to the Accounts tab and choose your Apple ID.
  7. Choose the identity from the list and then hit the "View Details..." button.
  8. Under "Signing Identities", only "iOS Development" was listed.
  9. Click the "refresh" button on the lower-left of this details page.
  10. I was informed that I didn't have a distribution certificate and asked if I wanted Xcode to request one for me. I chose Yes (or Request)
  11. 'iOS Distribution" then showed up also, just under the "iOS Development" entry
  12. Hit the "Done" button
  13. Exit from the Xcode preferences
  14. Choose the Target for your project, then choose the "General" tab
  15. Choose the "Team" dropdown and pick your team, even if it is already selected. This causes Xcode to refresh its info about the Team.
  1. 在设备上,我删除了 General -> Profile 中的配置文件。
  2. 在 Xcode 中,在窗口选项卡下打开“设备”窗口。(shift+cmd+2)
  3. 选择设备并复制其标识符
  4. 登录 developer.apple.com 并转到“证书、标识符和配置文件”区域
  5. 如果相关设备未注册,请在“设备”区域注册。(我的设备没有注册,所以我注册了)
  6. 在 Xcode 选项卡下的 Xcode 首选项中,转到帐户选项卡并选择您的 Apple ID。
  7. 从列表中选择身份,然后点击“查看详细信息...”按钮。
  8. 在“签名身份”下,只列出了“iOS 开发”。
  9. 单击此详细信息页面左下角的“刷新”按钮。
  10. 我被告知我没有分发证书,并询问我是否希望 Xcode 为我申请一个。我选择是(或请求)
  11. “iOS 发行版”然后也出现了,就在“iOS 开发”条目下
  12. 点击“完成”按钮
  13. 退出 Xcode 首选项
  14. 为您的项目选择目标,然后选择“常规”选项卡
  15. 选择“团队”下拉菜单并选择您的团队,即使它已经被选中。这会导致 Xcode 刷新其有关团队的信息。

At this point, my warning next to "Team" went away. I then tried to run my app on the problem iOS device again and it worked as expected.

此时,我在“团队”旁边的警告消失了。然后我尝试再次在有问题的 iOS 设备上运行我的应用程序,它按预期工作。

I hope that by following these steps, it will at least help you get closer to fixing your problem.

我希望通过遵循这些步骤,它至少可以帮助您更接近解决问题。

回答by Qiulang

I only have this problem when archiving so I do not bother to investigate, unplug the iPhone and archiving works just fine.

我只在存档时遇到这个问题,所以我不费心去调查,拔掉 iPhone 和存档工作就好了。

回答by PiTheNumber

In my case I needed to remove the Team ID from the bundle identifier in targets settings > General.

就我而言,我需要从目标设置 > 常规中的包标识符中删除团队 ID。

If you have the Team selected below this id will be added automatically.

如果您在下方选择了团队,则会自动添加此 ID。

回答by Chris Hobbs

I followed a lot of the instructions out there about resetting profiles and restarting xcode but still had no luck. Eventually I set team to 'none' and reset the build configuration as indicated here:

我遵循了很多关于重置配置文件和重新启动 xcode 的说明,但仍然没有运气。最终,我将 team 设置为“none”并按照此处所示重置构建配置:

https://developer.apple.com/library/ios/qa/qa1814/_index.html

https://developer.apple.com/library/ios/qa/qa1814/_index.html

Bingo.

答对了。

This was for a project I hadn't updated in a year or so and I had just updated to xcode 7.3.

这是一个我一年左右没有更新的项目,我刚刚更新到 xcode 7.3。

回答by Brian Li

I had a similar problem where my device was properly registered and had been working for some time before suddenly stopping. All of the provisioning profiles were up to date and I was still able to download other Xcode projects onto my device. My developer account was listed as the Team under Targets -> General -> Team but it still wouldn't work. So I switched Team to None and attempted to build the Project again. It gave me an error for not selecting a valid Team, but then an option popped up to choose one of the ones registered earlier in Accounts. I just clicked on my developer ID and that seemed to fix the problem.

我有一个类似的问题,我的设备已正确注册并且在突然停止之前已经工作了一段时间。所有配置文件都是最新的,我仍然可以将其他 Xcode 项目下载到我的设备上。我的开发者帐户被列为目标 -> 常规 -> 团队下的团队,但它仍然无法正常工作。所以我将 Team 切换为 None 并尝试再次构建该项目。它给了我一个错误,因为我没有选择一个有效的团队,但随后会弹出一个选项来选择之前在帐户中注册的团队之一。我只是点击了我的开发者 ID,这似乎解决了这个问题。