简体   繁体   English

Xcode 9.2 不支持 iOS 11.3 需要 9.3

[英]Xcode not supported for iOS 11.3 by Xcode 9.2 needed 9.3

Apparently, with the latest IOS update, my version of Xcode could not build due to the following error.显然,在最新的 IOS 更新中,由于以下错误,我的 Xcode 版本无法构建。

Could not locate device support files.找不到设备支持文件。 This iPhone 7 Plus (Model 1661, 1784, 1785, 1786) is running iOS 11.3 (15E216), which may not be supported by this version of Xcode.此 iPhone 7 Plus(型号 1661、1784、1785、1786)运行的是 iOS 11.3 (15E216),此版本的 Xcode 可能不支持。

Tried to install Xcode 9.3 via this link https://developer.apple.com/download/more/ .尝试通过此链接https://developer.apple.com/download/more/安装 Xcode 9.3。 But as it turns out, my Mac OS version sees the update as an incompatible version.但事实证明,我的 Mac OS 版本将更新视为不兼容的版本。 Running on Sierra 10.12.6Sierra 10.12.6上运行

Another option is to download the 11.3 device support at:另一种选择是在以下位置下载 11.3 设备支持:

iOS 11.3 (15E217) iOS 11.3 (15E217)

And don't forget to remove "(15E217)" from folder name, so it became "11.3".并且不要忘记从文件夹名称中删除“(15E217)”,所以它变成了“11.3”。 Restart Xcode afterwards.之后重新启动Xcode。

在此处输入图片说明

Where to paste it according to comment of EdwardM根据 EdwardM 的评论将其粘贴到何处

For those that don't know where to paste the contents of the zipped file.对于那些不知道在哪里粘贴压缩文件内容的人。 Find your Applications icon in the dock, right-click, "Open Applications".在 Dock 中找到您的应用程序图标,右键单击“打开应用程序”。 The folder will open in Finder.该文件夹将在 Finder 中打开。 Right-click Xcode > Show Package Contents.右键单击 Xcode > 显示包内容。 Then go to Developer > Platforms > iPhoneOS.platform > DeviceSupport然后去开发者 > 平台 > iPhoneOS.platform > DeviceSupport

I have the same problem, OS Sierra trying to run iPhone SE with 10.3 using Xcode 9.2 and I don't have the resources to update to High Sierra and Xcode 9.3.我有同样的问题,OS Sierra 尝试使用 Xcode 9.2 运行带有 10.3 的 iPhone SE,但我没有更新到 High Sierra 和 Xcode 9.3 的资源。

Solution:解决方法:

  1. Find your friends who have Xcode 9.3寻找拥有 Xcode 9.3 的朋友
  2. Ask them to right click on Xcode, Show Package Contents then navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.3 (15E217)让他们右键单击 Xcode,显示包内容,然后导航到Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.3 (15E217)
  3. Copy the 11.3 (15E217) folder to your old Xcode (9.2) with the same file hierarchy11.3 (15E217)文件夹复制到具有相同文件层次结构的旧 Xcode (9.2)

Now you have Xcode 9.2 with iOS 11.3.现在您拥有带有 iOS 11.3 的 Xcode 9.2。

I just give you a device support file for iOS 11.4 (15F79) .我只是给你一个 iOS 11.4 (15F79)的设备支持文件。 which just on XCode version 9.4 (9F1027a)仅在 XCode 版本 9.4 (9F1027a) 上

Updated on 5 Oct 2018: 2018 年 10 月 5 日更新:

I have macOS 10.12.6我有 macOS 10.12.6

You can download Xcode 9.3 from https://developer.apple.com/download/您可以从https://developer.apple.com/download/下载 Xcode 9.3
and extract the " 11.3 (15E217) " folder from it并从中提取“ 11.3 (15E217) ”文件夹

The fix really works.修复确实有效。

请同时添加“11.3(15E216)”和“11.3(15E217)”,将它们全部保存在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform

I recently stumbled upon the same problem, where I basically updated my iPhone X to the newest OS version, and (for reasons I will not go into) had to run the app on Xcode 9.2.我最近偶然发现了同样的问题,我基本上将我的 iPhone X 更新到了最新的操作系统版本,并且(出于我不会介绍的原因)不得不在 Xcode 9.2 上运行该应用程序。

This thread was helpful, but there's one small caveat that even though I downloaded the newest support files from the provided Github project , and put them in the appropriate folder, I was still getting this error:这个线程很有帮助,但有一个小警告,即使我从提供的 Github 项目下载了最新的支持文件,并将它们放在适当的文件夹中,我仍然收到此错误:

Say for example you've downloaded 11.4 (15F79) but after restarting and running again you get an error mentioning something like 11.4.1 (15G77).举例来说,您已经下载了 11.4 (15F79),但在重新启动并再次运行后,您会收到一条错误消息,其中提到了 11.4.1 (15G77) 之类的内容。

The solution, as I wrote here , was to just rename the folder (so, rename 11.4 (15F79) to 11.4.1 (15G77) ), restart Xcode and voila, it works!解决方案,正如我在这里写的,只是重命名文件夹(因此,将11.4 (15F79)重命名为11.4.1 (15G77) ),重新启动 Xcode,瞧,它起作用了!

Hope this helps someone 👍希望这对某人有帮助👍

  1. I have macOS 10.13.4我有 macOS 10.13.4

  2. I downloaded Xcode 9.3我下载了 Xcode 9.3

  3. Here you have the "11.3 (15E217)" it's work fine.在这里你有“11.3(15E217)”它工作正常。

Quicker/Smaller Fix更快/更小修复

This is probably due to outdated Xcode, if you don't want a big Xcode update due to limited storage/time then you can manually download the required support files instead of the whole update.这可能是由于过时的 Xcode,如果由于存储/时间有限而不想进行大的Xcode更新,那么您可以手动下载所需的支持文件而不是整个更新。

  1. Download the files (depend on iOS veersion) from here这里下载文件(取决于 iOS 版本)
  2. And then paste the downloaded files in below directory /Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport然后将下载的文件粘贴到以下目录/Applications/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM