xcode “找不到开发者磁盘映像”运行错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35234031/
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
"Could not find Developer Disk Image" run error
提问by Julius Pallesen
When I try to run an app on connected iPhone I get the error: "Could not find Developer Disk Image"I am notregistred Apple Developer right now, but you wouldn't need that in xcode 7 would you?
I Just updated xcode to version 7.2.1and my iPhone (6 plus) is running iOS 9.3
当我尝试运行连接的应用程序iPhone我得到的错误:“找不到开发磁盘映像”我不registred苹果开发者的权利,但你不会需要一个在Xcode 7你会吗?我刚刚将 xcode 更新到7.2.1 版,而我的 iPhone (6 plus) 运行的是iOS 9.3
回答by dc.
Xcode 7.2.1 currently only supports up to iOS 9.2
Xcode 7.2.1 目前最多只支持 iOS 9.2
9.3 is in beta, and requires Xcode 7.3, which is currently also in beta. You can download from the developer portal. You won't need to be a paid developer to do this.
9.3 处于测试阶段,需要 Xcode 7.3,目前也处于测试阶段。您可以从开发者门户下载。您无需成为付费开发人员即可执行此操作。
回答by katopz
The easiest way is update your OS and XCode but if you have some reason to stick with Yosemite 10.10.5 Xcode 7.2.1, You can use this copy and paste trickto make it work. Just download Xcode 7.3.1 GM seed and here are files you need to copy and replace the old one.
最简单的方法是更新您的操作系统和XCode的,但如果你有一些理由来坚持约塞米蒂10.10.5的Xcode 7.2.1,您可以使用此复制和粘贴技巧,以使其发挥作用。只需下载 Xcode 7.3.1 GM 种子,这里是您需要复制和替换旧文件的文件。
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/version.plist
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.3 (13E230)
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/version.plist
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
- /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.3 (13E230)
This work for me.
这对我有用。
回答by Swati Gupta
To run your project from your latest Xcode version to latest iOS device follow the following steps :
要将您的项目从最新的 Xcode 版本运行到最新的 iOS 设备,请按照以下步骤操作:
Go To Finder -> Applications -> Right Click on latest Xcode version -> select show package content -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport -> Copy the latest version folder and paste at the same location of your old Xcode i.e in the DeviceSupport folder of your old Xcode.
转到 Finder -> 应用程序 -> 右键单击最新的 Xcode 版本 -> 选择显示包内容 -> 开发人员 -> 平台 -> iPhoneOS.platform -> DeviceSupport -> 复制最新版本文件夹并粘贴到旧版本的相同位置Xcode 即在旧 Xcode 的 DeviceSupport 文件夹中。
Then Restart Xcode.
然后重新启动Xcode。
回答by MobileMagnet
As opposed to running your project on the simulator, when you run it on the device, you must make sure your version of Xcode supports the version of the beta you have (most likely, it would not).
与在模拟器上运行您的项目相反,当您在设备上运行它时,您必须确保您的 Xcode 版本支持您拥有的 beta 版本(很可能,它不会)。
You can easily just check your target and click on the "General" tab. Under the "Deployment Info" section, select the "Deployment Target" drop-down menu and you will see the versions your version of Xcode supports (as shown below):
您可以轻松地检查您的目标并单击“常规”选项卡。在“Deployment Info”部分下,选择“Deployment Target”下拉菜单,您将看到您的Xcode版本支持的版本(如下图):