iOS - Doesn't include the currently selected device

昨晚把一直想买的iPad mini4给拿下了,晚上11.34下的单 第二天的3.30就拿到了,京东真是快。

本来一天都在弄文件下载,断点下载进度条多线程之类的事情,老大说把我们app RUN 到iPad上看看。R了一下bulid失败了。错误信息

Provisioning profile "match Development com.XXX.YYY" doesn't include the currently selected device "XXX".
Code signing is required for product type 'Application' in SDK 'iOS 10.0'

Xcode已经是最新的了,iPad是10.0.1绝对是没问题的应该。于是Google了一下。找到了这个解答

Xcode 8 cannot run on device, provisioning profile problems mentioning Apple Watch


Answer

I had the same issue today - XCode Version 8.0 (8A218a) - and fixed it with two simple steps (instead of the more complicated approach above:

  1. add the Apple Watch to member center (did not find a copy&paste option either)
  2. edit the development provisioning profile and add the watch to devices, save
  3. go to XCode prefs, move the old provisioning profile to trash (right click on the name) and download the new version
  4. set the new provisioning profile in project editor
    No restart, clean or anything else needed. Worked like a charm

需要在描述文件添加设备的UDID

UDID可以通过 iTunes 拿到。


如果看不到UDID多点几下我抹红的地方就行了

拿到这个UDID 登录到 苹果开发者中心

登录账号后 找到

然后

最好在描述文件添加这个设备

edit

Select All

Generate

再去xcode 重新下载一下描述文件 clean 一下就OK了

欢迎光临我的个人博客

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容