真机调试或打包时There are no devices registered in your account on the developer website

6,091 阅读1分钟

There are no devices registered in your account on the developer website.

Plug in and select a device to have Xcode register it

如图:

原因:

1.真机调试时:一般是首次调试,左上角没有选择真机iPhone

2.打包时:苹果要求我们打包上架之前至少要在开发者网站注册一台真机,大多数人都不会遇到这种情况,因为在上架前我们肯定会真机调试一下,在调试的时候Xcode就自动帮我们注册了。

但也有少数人从没在真机上调试过就直接打包的。

(把错误直译过来就是:

我们没有在开发者账号(Apple ID)上注册iOS设备(真机)

他让我们把iOS设备连上电脑,选择一个设备让Xcode自动帮我们注册一下。)

解决方法:

连上iPhone,并在左上角这里选择真机iPhone(而不是图中的模拟器):

然后运行一下,Xcode就自动帮我们注册了这台iPhone了

(在开发者网站的证书-device-all那里就能看到我们刚刚运行的设备了)

广告时间:

本人目前专职在做一些iOS的视频教程,可以免费试听一部分,大家如果觉得好的话希望多多支持: m.cctalk.com/inst/s9vfhe…