无法在 Xcode 中找到设备支持文件

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

Could not locate device support files in Xcode

iosiphonexcode

提问by Karthik

I got following error in Xcode when run my app in my Device. Xcode Version is 10.01, My Device iOS Version 12.2 (iPhone 5S).

在我的设备中运行我的应用程序时,我在 Xcode 中遇到以下错误。Xcode 版本是 10.01,我的设备 iOS 版本 12.2 (iPhone 5S)。

Could not locate device support files.

找不到设备支持文件。

enter image description here

在此处输入图片说明

回答by M Reza Farahani

You need to update your Xcode to the latest version. You can use this link.

您需要将 Xcode 更新到最新版本。您可以使用此链接

OR

或者

You can download latest iOS device support file from this github repositoryand copy the folder to this path of your current Xcode:

你可以从这个 github 存储库下载最新的 iOS 设备支持文件,并将文件夹复制到你当前 Xcode 的这个路径:

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

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

Now after restarting your Xcode, it should work fine.

现在重新启动 Xcode 后,它应该可以正常工作。



You can get the latest device support files (iOS 13.4) here:

您可以在此处获取最新的设备支持文件 (iOS 13.4):

iOS 13.4 (FromXcode_11.4_beta_3_xip)

iOS 13.4(来自Xcode_11.4_beta_3_xip)

回答by Kuldeep

for iOS 12.2 you need Xcode 10.2 beta 2and if you don't want to download new xcode then you need to manually download device support files.

对于 iOS 12.2,您需要Xcode 10.2 beta 2,如果您不想下载新的 xcode,则需要手动下载设备支持文件。

You can download 12.2 simulator from here and paste this folder at this path.

您可以从此处下载 12.2 模拟器并将此文件夹粘贴到此路径中。

Donload simulator :Simulators

Donload 模拟器 :模拟器

Simulator Path :

模拟器路径:

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

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

After doing this you will able to run in your 12.2 device.

完成此操作后,您将能够在 12.2 设备中运行。

回答by Bhavin Kansagara

Well, you should update your Xcode to latest version to support running it on your iOS Device.

好吧,您应该将 Xcode 更新到最新版本以支持在您的 iOS 设备上运行它。

From overView here, it supports upto iOS 12.1:

这里的overView ,它最多支持iOS 12.1:

Xcode 10.1 includes SDKs for iOS 12.1, watchOS 5.1, macOS 10.14.1, and tvOS 12.1. Xcode 10.1 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 10.1 requires a Mac running macOS 10.13.6 or later.

Xcode 10.1 包括适用于 iOS 12.1、watchOS 5.1、macOS 10.14.1 和 tvOS 12.1 的 SDK。Xcode 10.1 支持 iOS 8 及更高版本、tvOS 9 及更高版本以及 watchOS 2 及更高版本的设备上调试。Xcode 10.1 需要运行 macOS 10.13.6 或更高版本的 Mac。

You can read release not hereand can download Xcode 10.2 beta version here

您可以阅读版本不能在这里,可以下载Xcode的10.2 beta版在这里

Hope it helps.

希望能帮助到你。