Xcode - 未连接任何已配置的 iOS 设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4632044/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:04:15  来源:igfitidea点击:

Xcode - No provisioned iOS device is connected

iphonexcode

提问by Neal L

I was using Xcode this afternoon and debugging an app on my device just fine. When I got home from the office and plugged in my phone to keep working, XCode would no longer let me debug on my device. The error I received was:

今天下午我正在使用 Xcode 并在我的设备上调试一个应用程序就好了。当我从办公室回到家并插入手机继续工作时,XCode 将不再让我在我的设备上进行调试。我收到的错误是:

Error Starting Executable.  No provisioned iOS device is connected.

So I hopped over to the Organizer, and here is what I saw:

所以我跳到组织者那里,这是我看到的:

alt text

替代文字

So what gives? Anyone seen this before?

那么什么给呢?有人见过这个吗?

Thanks!

谢谢!

采纳答案by Neal L

Well I don't know why this helped, but if anyone else sees this thread the thing that "fixed" the problem was to remove the SDK from my machine, restart XCode, then plug in the device. XCode then popped up an alert view asking to collect the debugging symbols from the device, which I allowed it to do. From then on it worked like a charm.

好吧,我不知道为什么这有帮助,但是如果其他人看到这个线程,那么“修复”问题是从我的机器上删除 SDK,重新启动 XCode,然后插入设备。XCode 然后弹出一个警告视图,要求从设备收集调试符号,我允许它这样做。从那时起,它就像一个魅力。

回答by Mudasser Hameed

You may be testing your application on simulator and accidentally, device is selected instead of simulator. It help me to sort out this problem.

您可能正在模拟器上测试您的应用程序,并且意外地选择了设备而不是模拟器。它帮助我解决这个问题。

回答by Itay Levin

I had another way of fixing this problem.

我有另一种方法来解决这个问题。

I tried upgrading my device to iOS5 Beta 7 ...to test my app in iOS5 Once i finished testing it, wanted to get back to iOS4.3.5 on my device...

我尝试将我的设备升级到 iOS5 Beta 7 ...以在 iOS5 中测试我的应用程序一旦我完成测试,我想在我的设备上返回 iOS4.3.5...

it took a little pain but managed to restore it back to the original but then the debugging didn't work and got the same error as mentioned here.

有点痛苦,但设法将其恢复到原始状态,但随后调试不起作用并出现了与此处提到的相同的错误。

So i wanted to see what i see in that snapshot that you have : and there it was... A button called "enable for debugging" if i'm not mistaken.

所以我想看看我在你所拥有的那个快照中看到了什么:如果我没记错的话,它就是一个名为“启用调试”的按钮。

Worked like a charm.... :)

像魅力一样工作...... :)

回答by WrightsCS

Make sure you have upgraded to the latest Xcode 3.2.5 with iOSK 4.2.1 SDK.

确保您已使用 iOSK 4.2.1 SDK 升级到最新的 Xcode 3.2.5。