Xcode 应用程序运行问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40226916/
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 App Running Issue
提问by Berat Baran Cevik
I just updated my iPhone 5 to iOS version 10.1. When I tried to run the app that I'm developing on my device I got the following error from Xcode:
我刚刚将我的 iPhone 5 更新到了 iOS 10.1 版。当我尝试在我的设备上运行我正在开发的应用程序时,我从 Xcode 收到以下错误:
"Could not locate device support files. This iPhone 5 (Model A1429) is running iOS 10.1 (14B72), which may not be supported by this version of Xcode."
“无法找到设备支持文件。此 iPhone 5(型号 A1429)运行的是 iOS 10.1 (14B72),此版本的 Xcode 可能不支持。”
I have the latest version of Xcode i.e. 8.0 (I just double checked to see if there are any available updates). I cannot set the deployment target higher than 10.0 either.
我有最新版本的 Xcode,即 8.0(我只是仔细检查过是否有任何可用的更新)。我也无法将部署目标设置为高于 10.0。
What do I need to do? Is there a way to downgrade my device? When there is an update in the future should I wait until the version is released on Xcode?
我需要做什么?有没有办法降级我的设备?将来有更新时,我应该等到 Xcode 上发布该版本吗?
采纳答案by Ali Omari
Actually your iOS version still fresh and xCode SDK still in beta
实际上你的 iOS 版本还很新鲜,xCode SDK 还处于测试阶段
you can download the beta SDK's from here xCode 10.1 beta SDK download
你可以从这里下载 beta SDK's xCode 10.1 beta SDK download
UPDATE: Now apple have updated Xcode to 8.1 which include the SDK for 10.1, and you can download it from app store.
更新:现在苹果已经将 Xcode 更新到 8.1,其中包括 10.1 的 SDK,您可以从应用商店下载。
回答by Juri Noga
Xcode 8.1 is now available
Xcode 8.1 现已推出
Note from Apple News:
苹果新闻注意事项:
You can now download Xcode 8.1 from the Mac App Store. This version includes the latest macOS SDKs for building apps that use the all-new Touch Bar on the new MacBook Pro. To develop apps for the Touch Bar, you'll need a Mac running Xcode 8.1 on macOS Sierra 10.12.1 (12B2657) or later.
您现在可以从 Mac App Store 下载 Xcode 8.1。此版本包含最新的 macOS SDK,用于构建在新 MacBook Pro 上使用全新 Touch Bar 的应用程序。要为 Touch Bar 开发应用程序,您需要在 macOS Sierra 10.12.1 (12B2657) 或更高版本上运行 Xcode 8.1 的 Mac。
回答by XFactor
There is an option in order to do not download full xcode, you need to download files from thistopic (in Update comment)
有一个选项可以不下载完整的 xcode,您需要从该主题下载文件(在更新评论中)
Then you need to copy 10.1 (14B65) folder to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
然后你需要将 10.1 (14B65) 文件夹复制到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
so the full path will look like:
所以完整路径将如下所示:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.1 (14B65) with two files in it: DeveloperDiskImage.dmg.signature and DeveloperDiskImage.dmg
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.1 (14B65) 包含两个文件:DeveloperDiskImage.dmg.signature 和 DeveloperDiskImage.dmg
It worked fine for me.
它对我来说很好。
回答by Olivier de Jonge
Updates between iOS and macOS are independent though if you are developer they are not because iOS and Xcode have to match. In my case my iOS upgraded automatically but my Xcode did not, and could not, because I had postponed the upgrade of my macOS (laziness). After I upgraded my macOS my Xcode could also upgrade to the right version suitable for the iOS version on my iPad and everything worked fine again.
iOS 和 macOS 之间的更新是独立的,但如果您是开发人员,它们不是因为 iOS 和 Xcode 必须匹配。就我而言,我的 iOS 自动升级,但我的 Xcode 没有,也不能,因为我推迟了 macOS 的升级(懒惰)。升级我的 macOS 后,我的 Xcode 也可以升级到适合我 iPad 上的 iOS 版本的正确版本,并且一切正常。