xcode 应用突然无法在设备上运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12831395/
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-15 01:46:40  来源:igfitidea点击:

App suddenly will not run on device

xcode

提问by Naseiva Khan

I have been running an app on my ipod that I've been developing for a while now and all of a sudden it won't run. I haven't changed xcode or macos; I've deleted the derived data folder; I've restarted the device, computer and xcode and cleaned.

我一直在我的 ipod 上运行一个我已经开发了一段时间的应用程序,突然间它无法运行。我没有更改 xcode 或 macos;我已经删除了派生数据文件夹;我已经重新启动了设备、计算机和 xcode 并进行了清理。

The error I'm getting is: "could not start debugserver on MyDevice when trying to launch My.app"

我得到的错误是:“尝试启动 My.app 时无法在 MyDevice 上启动调试服务器”

My provisioning profile and device are green. I can't understand what I could possibly have changed.

我的配置文件和设备是绿色的。我无法理解我可能会改变什么。

Any ideas?

有任何想法吗?

Thanks.

谢谢。

回答by Scott Berrevoets

Restart Xcode and the device and you should be fine.

重新启动 Xcode 和设备,你应该没问题。

回答by Bruce Lee

just CMD+shift+K, clean you project. when it's done, it should be work. at least for me.

只需 CMD+shift+K,清理你的项目。完成后,应该可以工作了。至少对于我来说。

回答by sensor

Try deleting the installed application from your phone. That worked for me as none of the above methods did.

尝试从手机中删除已安装的应用程序。这对我有用,因为上述方法都没有。

回答by beowulf

I had this issue while I was testing iOS beta. I updated iOS version on device and I had to restart xcode and then reconnect to

我在测试 iOS 测试版时遇到了这个问题。我更新了设备上的 iOS 版本,我不得不重新启动 xcode,然后重新连接到

回答by Vivek

  1. Restart xcode.
  2. Unplug iPhone/iPad from usb cable (If connected with usb cable).
  3. Turn off wifi and connect again (If you are using wifi debug).
  4. Clean project.
  5. Run your app again.
  1. 重启xcode。
  2. 从 USB 电缆上拔下 iPhone/iPad(如果使用 USB 电缆连接)。
  3. 关闭 wifi 并再次连接(如果您使用的是 wifi 调试)。
  4. 清洁项目。
  5. 再次运行您的应用程序。