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

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

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))

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

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

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

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

之后你应该可以部署到你的 iPhone 8.

正如@Kerberos 的回答,您可以将 iOS 12 device support files 复制到:

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

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

Yatko 提供的 link 不支持最新的 iOS 12 版本(public 发布)。

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

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

无需下载即可实现的另一种便捷方式Xcode 10.

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

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

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

可下载URL:

13.2

13.1

13.0

12.4

12.3

12.2 (16E226)

12.1

12.0 (16A5288q)

11.4 (15F5037c)

11.3 (15E5189d)

11.2

11.1

11.0 (15A372)

10.3 (14E5239d)

10.2 (14C89)

10.1

10.0 (14A5339a)

按照以下步骤操作。

1) 解压下载的文件

2) 右键单击​​ Xcode 然后单击 Show Package Content

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

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

4) 重启Xcode

是不是很方便,省去了更新的麻烦Xcode。什么?您找不到新的设备支持文件!好的,你可以从你朋友最新的Xcode,或者download from here

复制出来

更新:

为 iOS 13.0、12.3 和 iOS 12.4

添加的 iOS 磁盘映像