设备不会运行错误 iOS 9 Xcode 7.0

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

Device Will not run error iOS 9 Xcode 7.0

iosxcode

提问by dancingbush

I recenlty upgraded my device to iOS 9.

我最近将我的设备升级到 iOS 9。

The device will not work in Xcode 7.1, when tying to run get the error:

该设备将无法在 Xcode 7.1 中运行,当绑定运行时出现错误:

An error was encountered while enabling development on this device. Please try rebooting and reconnecting the device. (0xE8000076)

在此设备上启用开发时遇到错误。请尝试重新启动并重新连接设备。(0xE8000076)

So I updated iTunes and dowloaded Xcode 7.0 as suggested here, cleaned and built. No luck.

因此,我按照此处的建议更新了 iTunes 并下载了 Xcode 7.0 ,进行了清理和构建。没运气。

Any input appreciated.

任何输入表示赞赏。

回答by FreeNickname

Well, it's worth trying to do as the error message proposes: reboot and reconnect the device.

好吧,按照错误消息的建议尝试这样做是值得的:重新启动并重新连接设备。

UPDATE: it is possible, that two reboots are required. Take a look at comments to this answer.

更新:有可能需要重新启动两次。看看这个答案的评论。

UPDATE 2: If nothing else helps, try restoring the device.

更新 2:如果没有其他帮助,请尝试恢复设备。

回答by Jonny

Had the same problem now. I had Instruments open. When I closed it, Xcode would allow my iPhone. Might be worth a shot.

现在有同样的问题。我打开了仪器。当我关闭它时,Xcode 将允许我的 iPhone。可能值得一试。

回答by Alfishe

The explanation of issue and fix: - XCode 7 started to monitor connections from applications to the device - If XCode "does not like" the application or type activity between computer and iOS device - it displays such weird message

问题和修复的解释: - XCode 7 开始监视从应用程序到设备的连接 - 如果 XCode “不喜欢”计算机和 iOS 设备之间的应用程序或类型活动 - 它会显示这样奇怪的消息

Fix - exit all applications that might communicate with iOS device: - AppCode - most probably it is causing issues - XCode instrumentation - usually not causing issues but sometimes might do - iTunes - never seen but it's also probable target

修复 - 退出所有可能与 iOS 设备通信的应用程序: - AppCode - 很可能是导致问题 - XCode 检测 - 通常不会导致问题,但有时可能会 - iTunes - 从未见过,但它也是可能的目标

Just to have no side-effects it's better to have device rebooted (with cable detached) and make project Clean prior next attempt to run on a device.

为了没有副作用,最好重新启动设备(断开电缆)并在下次尝试在设备上运行之前使项目保持干净。

Hope that will save you few minutes and some neurons in your brain

希望这会为您节省几分钟和大脑中的一些神经元

回答by iosuser2332

Xcode store information about different iOS devices that were connected to your computer in /Users/"your home directory"/Library/Developer/Xcode/iOS DeviceSupport. (OS X El Capitan, Xcode 6.4). I found directory inside it that had the same name as iOS version of iPhone that had such kind of error and delete. When I connected my iPhone one more time, Xcode started to copy necessary symbols. After Xcode finished, I have not receive error again. I suppose other Xcode versions (7.3.1, 8.0) store information about iOS Devices in same directory.

Xcode 将有关连接到您的计算机的不同 iOS 设备的信息存储在 /Users/“您的主目录”/Library/Developer/Xcode/iOS DeviceSupport 中。(OS X El Capitan,Xcode 6.4)。我发现其中的目录与 iOS 版本的 iPhone 同名,但有此类错误和删除。当我再次连接 iPhone 时,Xcode 开始复制必要的符号。Xcode 完成后,我没有再收到错误消息。我想其他 Xcode 版本(7.3.1、8.0)将有关 iOS 设备的信息存储在同一目录中。

回答by fasteque

I had the same problem with the Apple TV and my problem was the misalignment between Xcode version and the tvOS version on the device.

我在 Apple TV 上遇到了同样的问题,我的问题是 Xcode 版本和设备上的 tvOS 版本之间没有对齐。

I had Xcode 9.0 and tvOS 11.0 and everything was working fine, then thanks to automatic updates option enabled on my Apple TV, the device was updated to tvOS 11.1. That's when I started to get this issue trying to run my application.

我有 Xcode 9.0 和 tvOS 11.0,一切正常,然后由于在我的 Apple TV 上启用了自动更新选项,该设备已更新到 tvOS 11.1。那时我开始尝试运行我的应用程序时遇到此问题。

The issue was Xcode 9.0 didn't have support for tvOS 11.1, so simply had to upgrade Xcode to version 9.1.

问题是 Xcode 9.0 不支持 tvOS 11.1,因此只需将 Xcode 升级到 9.1 版即可。

One thing I can suggest, is to check Xcode supported device in the following folder (at least on a Mac):

我可以建议的一件事是在以下文件夹中检查 Xcode 支持的设备(至少在 Mac 上):

/Users/YOUR_USER_NAME/Library/Developer/Xcode

Here you have folders like iOS DeviceSupportor tvOS DeviceSupportand inside of them you should have the iOS/tvOS version of the device you're trying to use.

在这里,您有类似iOS DeviceSupport或 的文件夹tvOS DeviceSupport,其中应该有您尝试使用的设备的 iOS/tvOS 版本。

If it's not available, very likely it means your Xcode doesn't support (so update Xcode) or you have to install the correct SDK from Xcode.

如果它不可用,很可能意味着您的 Xcode 不支持(因此更新 Xcode)或者您必须从 Xcode 安装正确的 SDK。

Anyway, in my opinion, the error message should be a little bit more clear and helpful.

无论如何,在我看来,错误信息应该更清晰和有用。

回答by u9197735

I Had the same problem in Xcode Version 9.4 (9F1027a) with iPhone 5s(9.3.2). Based on the previous answers, I closed the instrument,simulator and reopen Xcode project twice. Then it work.

我在 Xcode 9.4 (9F1027a) 和 iPhone 5s(9.3.2) 中遇到了同样的问题。根据之前的答案,我关闭了仪器、模拟器并重新打开了 Xcode 项目两次。然后它工作。

回答by Aashish

I had the same problem in xCode7as it only supports upto iOS 9.3. So, you may need to add a Developer Disk Imageof iOS versionas of your device. You need to goto:

我在xCode7 中遇到了同样的问题,因为它只支持iOS 9.3。所以,你可能需要添加一个开发磁盘映像IOS版本为您的设备。你需要去:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneO??S.platform/DeviceSup??port/

and paste the Developer Disk Image (iOS version you need) you just manually downloaded.

并粘贴iOS version you need您刚刚手动下载的开发者磁盘映像 ( )。

回答by dbergman

I had the same issue while trying to install an app onto my AppleTV. Turns out that I had a beta version of tvOS installed (auto updated). Once I removed the beta version and installed the GM, the install worked fine, and I was able to debug.

我在尝试在 AppleTV 上安装应用程序时遇到了同样的问题。原来我安装了 tvOS 的测试版(自动更新)。一旦我删除了测试版并安装了 GM,安装工作正常,并且我能够调试。

回答by Anand Prakash

Go to General setting -> Profile & device management and trust for the developer App.

转到常规设置 -> 配置文件和设备管理以及开发者应用程序的信任。

回答by MontyBanks

Just update to latest Xcode/Xcode beta and and update iOS device helps with Xcode 11.o beta 6 and iOS 13.1 beta

只需更新到最新的 Xcode/Xcode beta 并更新 iOS 设备帮助 Xcode 11.o beta 6 和 iOS 13.1 beta