Xcode 无法在运行 iOS 13 的真实 iOS 设备上构建

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

Xcode fails to Build on real iOS device running iOS 13

iosxcodeios13macos-catalina

提问by Mohammad Reza Koohkan

I'm currently updated my iPhone XS Max to iOS 13.0.17A5492tBeta version.

我目前已将 iPhone XS Max 更新为iOS 13.0.17A5492tBeta 版。

My mac running on Mac OS Catalinaand Xcode is on latest stable version not beta >> Version 10.2.1 (10E1001).

我的 mac 正在运行Mac OS Catalina,Xcode 是最新的稳定版本,而不是 beta >> Version 10.2.1 (10E1001)

When i try to build my apps on my real device i get this compile error:

当我尝试在我的真实设备上构建我的应用程序时,我收到此编译错误:

This iPhone XS Max is running iOS 13.0 (17A5492t), which may not be supported by this version of Xcode.

此 iPhone XS Max 运行的是 iOS 13.0 (17A5492t),此版本的 Xcode 可能不支持。

What i've done

我做了什么

  1. Download iOS 13.0 Developer Disk Imagefrom repo.
  2. Pasted in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. Restart Xcode
  1. 从 repo下载iOS 13.0 Developer Disk Image
  2. 粘贴在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. 重启Xcode

but none of above worked.

但以上都没有奏效。

回答by Lohi

your step by step manual you performed actually helped me and now I can work with iOs 13 with xcode 10.2.1. There is only difference, that I downloaded device support files from this github, so you can try this. And I restarted whole mac to be sure:)

您执行的分步手册实际上帮助了我,现在我可以使用带有 xcode 10.2.1 的 iOs 13。唯一的区别是我从这个 github下载了设备支持文件,所以你可以试试这个。我重新启动了整个 mac 以确保:)

回答by Dilip Mishra

I downloaded the Developer disk image for iOS 13.0 from here and added support file in Xcode Version 10.3 (10G8).

我从这里下载了 iOS 13.0 的开发者磁盘映像,并在 Xcode 版本 10.3 (10G8) 中添加了支持文件。

https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/13.0.zip

https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/13.0.zip

All other devices support list like 13.3.

所有其他设备都支持像 13.3 这样的列表。

https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport

https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport

Follow These steps.

按着这些次序。

  1. Unzip downloaded file.
  2. Right click on Xcode and click on Show Package Content.
  3. Then paste your file on path.

    Applications -> Xcode.app -> Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport

  1. 解压下载的文件。
  2. 右键单击 Xcode,然后单击Show Package Content
  3. 然后将您的文件粘贴到路径上。

    Applications -> Xcode.app -> Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport

Then at last restart your Xcode.

然后最后重启你的 Xcode。

It works for me.

这个对我有用。

回答by clopex

For all that have a problem with iOS 13.3 this is what I did and it works: you go to:

对于所有在 iOS 13.3 上有问题的人,这就是我所做的并且它有效:你去:

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

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

then if you don't have 13.2 folder with image download it from github link above, after that just copy 13.2 and rename it to 13.3 (17C54) and it works

然后,如果您没有带有图像的 13.2 文件夹,请从上面的 github 链接下载它,之后只需复制 13.2 并将其重命名为 13.3 (17C54) 即可

回答by Ab'initio

iOS 13.1.3 support for Xcode 10.2.1 with macOS Mojave (10.14.4)

iOS 13.1.3 支持 Xcode 10.2.1 和 macOS Mojave (10.14.4)

  • Download iOS 13.1.3 Developer Disk Image from repo.
  • Unzip file 13.1.3 (17A878).
  • Past it in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
  • Restart Xcode.
  • 从 repo下载 iOS 13.1.3 Developer Disk Image
  • 解压缩文件 13.1.3 (17A878)。
  • 将其粘贴到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport。
  • 重新启动Xcode。

回答by Ab'initio

For iOS 13.3 (17C54) the Developer Disk Image is available on this link.

对于 iOS 13.3 (17C54),可在此链接上获得开发者磁盘映像。

回答by eli7ah

The same source as Lohiprovided but for iOS 13.1specifically (if somebody will search direct link and won't notice all available versions in parent folder)

Lohi提供的源相同,但专门针对iOS 13.1(如果有人会搜索直接链接并且不会注意到父文件夹中的所有可用版本)

iOS 13.1

iOS 13.1

All other versions

所有其他版本

Unfortunately xcode 11 is still unstable so the trick is useful.

不幸的是,xcode 11 仍然不稳定,所以这个技巧很有用。

P.S.: Thanks to everyone who participated. Especially to iGhibli

PS:感谢所有参与的人。尤其是对iGhibli