有了新的iPhone,无法添加作为开发的设备(Got new iPhone, can't add as a device to develop on)

编程入门 行业动态 更新时间:2024-10-27 16:33:45
有了新的iPhone,无法添加作为开发的设备(Got new iPhone, can't add as a device to develop on)

当我插入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.

更多推荐

本文发布于:2023-07-20 20:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1203662.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设备   iPhone   add   develop   device

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!