YoRuo:想变得更好

爱折腾 - 乐于折腾 - 享受折腾

欢迎来到我的Blog~


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了

打赏一个呗

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦