当我插入iPhone 5时,Xcode会识别它,但是当我构建我的代码并尝试在我的手机上运行它时,我收到此错误:
找不到此可执行文件的有效配置文件。
所以我去组织者,单击设备下的电话,然后单击添加到门户网站,但我收到此错误:
此团队中已存在编号为“...”的设备。
我究竟做错了什么?
When I plug my iPhone 5 in, Xcode recognizes it, but when I build my code and try to run it on my phone, I get this error:
A valid provisioning profile for this executable was not found.
So I go to the organizer, click the phone under Devices and click Add to Portal, but I get this error:
A device with number '...' already exists on this team.
What am I doing wrong?
最满意答案
您已将其添加到门户网站,但是您是否已将该设备添加到您的应用的配置文件中? 我会检查以确保设备实际列在prov配置文件中,并且您已下载并安装它。 我还会从Organizer中删除以前的prov配置文件副本。 此外,有时XCode会因设备添加而死机,需要重启。
You added it to the portal but did you add that device into your provisioning profile for your app as well? I would check to make sure that the device is actually listed in the prov profile and that you've downloaded & installed it. I'd also kill the previous copy of the prov profile out of Organizer. Also, sometimes XCode goes brain dead with device additions and will need a restart.
更多推荐
发布评论