简体   繁体   English

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

[英]Xcode fails to Build on real iOS device running iOS 13

I'm currently updated my iPhone XS Max to iOS 13.0.17A5492t Beta version.我目前已将 iPhone XS Max 更新至iOS 13.0.17A5492t Beta 版。

My mac running on Mac OS Catalina and Xcode is on latest stable version not beta >> Version 10.2.1 (10E1001) .我在Mac OS Catalina和 Xcode 上运行的 mac 是最新的稳定版本,不是 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 Image from repo.从 repo 下载iOS 13.0 Developer Disk Image
  2. Pasted in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport粘贴在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  3. Restart Xcode重启Xcode

but none of above worked.但以上都没有奏效。

your step by step manual you performed actually helped me and now I can work with iOs 13 with xcode 10.2.1.您执行的分步手册实际上帮助了我,现在我可以使用带有 xcode 10.2.1 的 iOs 13。 There is only difference, that I downloaded device support files from this github , so you can try this.唯一的区别是我从这个 github下载了设备支持文件,所以你可以试试这个。 And I restarted whole mac to be sure:)我重新启动了整个 mac 以确保:)

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 .右键单击 Xcode,然后单击Show Package Content
  3. Then paste your file on path.然后将您的文件粘贴到路径上。

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

Then at last restart your Xcode.然后最后重启你的 Xcode。

It works for me.这个对我有用。

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

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

The same source as Lohi provided but for iOS 13.1 specifically (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仍然不稳定,因此该技巧很有用。

PS: Thanks to everyone who participated. PS:感谢所有参加的人。 Especially to iGhibli 特别是对iGhibli

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

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