Xcode 中发生未知错误

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

An Unknown Error occurred in Xcode

iosxcodeipadxcode5

提问by user3728320

I'm trying to test out my app on my ipad and when I decide to run it on my ipad, Xcode says that it's successfully built. On the top, it says that it's runnning the app, but nothing happens for 2-3 minutes. Finally, I get two screens popping up saying "An unknown error occurred." I have tried running other apps through Xcode on my ipad and they work fine. I also decided to exit Xcode and restart everything, but the problem still exists. Does anyone know what the problem is?

我正在尝试在 ipad 上测试我的应用程序,当我决定在 ipad 上运行它时,Xcode 说它已成功构建。在顶部,它说它正在运行应用程序,但在 2-3 分钟内没有任何反应。最后,我弹出两个屏幕,说“发生未知错误”。我曾尝试在 ipad 上通过 Xcode 运行其他应用程序,它们运行良好。我也决定退出Xcode并重新启动一切,但问题仍然存在。有谁知道问题是什么?

Not sure if this will be useful but Xcode Version: 5.1.1 Ipad Version: 7.0.4 Mac OS X 10.9

不确定这是否有用,但 Xcode 版本:5.1.1 Ipad 版本:7.0.4 Mac OS X 10.9

回答by Gourav Joshi

I found one approach:

我找到了一种方法:

Before this approach make sure that you have all certificates and other documentation updated.

在此方法之前,请确保您已更新所有证书和其他文档。

I have faced same issue, now I have a way to fix this. I am using iPhone 5 with OS version 9.1

我遇到了同样的问题,现在我有办法解决这个问题。我使用的是操作系统版本为 9.1 的 iPhone 5

First, delete the app from your device and then restart the xcode by force quit and then again open it. Now clean your project and run the project in your device. Now it will be run without any issue.

首先,从您的设备中删除该应用程序,然后通过强制退出重新启动 xcode,然后再次打开它。现在清理您的项目并在您的设备中运行该项目。现在它将毫无问题地运行。

回答by jungledev

Close your simulator or unplug and plug back in your device, and re-select the device target.

关闭您的模拟器或拔下并重新插入您的设备,然后重新选择设备目标。

回答by sumit

In my case . I cleaned the product and rebuild it and it worked.

就我而言。我清洁了产品并重建它并且它起作用了。

回答by Jerome

Sometime is you forget to unlock your device.

有时您忘记解锁您的设备。