Xcode 无法识别 iPhone 5s,dyld_shared_cache_extract_dylibs 失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19371702/
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
Xcode not recognizing iPhone 5s, dyld_shared_cache_extract_dylibs failed
提问by jesseilev
I am trying to run my app on an iPhone 5s. I plug in the device, but its name does not appear among the simulators as an option for Running; instead I just have the generic "iOS Device" option. In the Organizer window, I navigate to my device, which Organizer does recognize as having a valid provisioning profile. But when I click "Use for Development", I get this message:
我正在尝试在 iPhone 5s 上运行我的应用程序。我插入设备,但它的名字没有出现在模拟器中作为运行选项;相反,我只有通用的“iOS 设备”选项。在管理器窗口中,我导航到我的设备,管理器确实认为该设备具有有效的配置文件。但是当我单击“用于开发”时,我收到以下消息:
dyld_shared_cache_extract_dylibs failed
The answer to a similar questionseems to be outdated now. They suggested 'removing the "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)" folder.' But that folder is no longer used in Xcode versions after 4.2. I am on Xcode 5.
类似问题的答案现在似乎已经过时了。他们建议“删除“/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)”文件夹。但是在 4.2 之后的 Xcode 版本中不再使用该文件夹。我在 Xcode 5 上。
回答by iwasrobbed
This folder is now in the Xcode.app bundle. Open the Terminal
app on your Mac, then:
该文件夹现在位于 Xcode.app 包中。Terminal
在 Mac 上打开该应用程序,然后:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
$ ls
4.2 4.3 5.0 5.1 6.0 6.1 7.0 (11A465)
$ rm -rf "7.0 (11A465)"
By the way, if this doesn't work, you might want to consider reinstalling Xcode and see if it fixes the issue.
顺便说一下,如果这不起作用,您可能需要考虑重新安装 Xcode,看看它是否能解决问题。