Xcode 9.4 不支持 iOS 12:找不到设备支持文件

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

iOS 12 not supported by Xcode 9.4 : Could not locate device support files

iosxcodebetaxcode10ios12

提问by Yatko

This iPhone 8 (Model A1863, A1905, A1906, A1907) is running iOS 12.0 (16A5308e), which may not be supported by this version of Xcode. (Version 9.4.1 (9F2000))

此 iPhone 8(型号 A1863、A1905、A1906、A1907)运行的是 iOS 12.0 (16A5308e),此版本的 Xcode 可能不支持。(版本 9.4.1 (9F2000))

  • can anyone help with iOS 12.x device support filesfrom Xcode 10 beta?
  • 任何人都可以帮助使用Xcode 10 beta 中的iOS 12.x 设备支持文件吗?

回答by Kerberos

iOS 12 is only supported by the beta of Xcode 10 or higher.

iOS 12 仅受 Xcode 10 或更高版本的测试版支持。

If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder:

如果您想将 iPhone 8 与此 iOS 版本(不推荐)与 Xcode 9.4 一起使用,您可以尝试下载 Xcode 10 的最后一个测试版,然后将 iPhone 连接到 mac 后转到此文件夹:

/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

You can see the iOS version folder of the iPhone, copy and past it to the same location in your Xcode 9.4 folder.

您可以看到 iPhone 的 iOS 版本文件夹,将其复制并粘贴到 Xcode 9.4 文件夹中的相同位置。

After this you should be able to deploy to your iPhone 8.

在此之后,您应该能够部署到您的 iPhone 8。

回答by Yatko

As answered by @Kerberos you can copy the iOS 12 device support filesto:

正如@Kerberos 所回答的,您可以将iOS 12 设备支持文件复制到:

/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

https://github.com/Yatko/iOS-device-support-files

https://github.com/Yatko/iOS-device-support-files

回答by Kansway

The link provided by Yatko is not supporting the newest iOS 12 versions (public release).

Yatko 提供的链接不支持最新的 iOS 12 版本(公开发布)。

This repository has more iOS versions to offer: https://github.com/iGhibli/iOS-DeviceSupport

此存储库提供更多 iOS 版本:https: //github.com/iGhibli/iOS-DeviceSupport

Copy the files to the same path as described by Kerberos.

将文件复制到 Kerberos 描述的相同路径。

回答by Sourav Chandra

Another convenient way to achieve this without downloading Xcode 10.

另一种无需下载 Xcode 10 即可实现此目的的便捷方法。

https://github.com/sauravexodus/xcode-9-ios-12-support

https://github.com/sauravexodus/xcode-9-ios-12-support

Note: If you have multiple Xcode versions then be careful with the path written in install.shfile.

注意:如果您有多个 Xcode 版本,请注意写入install.sh文件的路径。

回答by COVID19

Just download latest OS SDK (iOS 12.2)and paste it on respective location.

只需下载最新的 OS SDK (iOS 12.2)并将其粘贴到相应位置即可

Downloadable URL:

可下载网址:

13.2

13.2

13.1

13.1

13.0

13.0

12.4

12.4

12.3

12.3

12.2 (16E226)

12.2 (16E226)

12.1

12.1

12.0 (16A5288q)

12.0 (16A5288q)

11.4 (15F5037c)

11.4 (15F5037c)

11.3 (15E5189d)

11.3 (15E5189d)

11.2

11.2

11.1

11.1

11.0 (15A372)

11.0 (15A372)

10.3 (14E5239d)

10.3 (14E5239d)

10.2 (14C89)

10.2 (14C89)

10.1

10.1

10.0 (14A5339a)

10.0 (14A5339a)

Follow below step.

按照以下步骤操作。

1) Unzipped downloaded file

1) 解压下载的文件

2) Right click on Xcode and click on Show Package Content

2)右键单击Xco​​de并单击 Show Package Content

3) Then paste your file on path

3)然后将您的文件粘贴到路径上

Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport

4) Restart Xcode

4)重启Xcode

enter image description here

在此处输入图片说明

Is it very convenient, saving the trouble of updating Xcode. what? You can't find a new Device Support file! Ok, you can copy it out from your friend's latest Xcode, or download from here

是不是很方便,省去了更新Xcode的麻烦。什么?您找不到新的设备支持文件!好的,你可以从你朋友最新的Xcode复制出来,或者从这里下载

Update:

更新:

The added iOS Disk image for iOS 13.0, 12.3 and iOS 12.4

为 iOS 13.0、12.3 和 iOS 12.4 添加的 iOS 磁盘映像