简体   繁体   English

如何在 Xcode 9.2 中获得新的 iOS SDK?

[英]How to get new iOS SDK in Xcode 9.2?

My app patch binary was just rejected by Apple and crash logs show that it was tested against iOS 11.2.5, but my latest simulator is 11.2.我的应用程序补丁二进制文件刚刚被 Apple 拒绝,崩溃日志显示它已针对 iOS 11.2.5 进行了测试,但我最新的模拟器是 11.2。 All of my local UI Tests and Unit Tests passed.我所有的本地 UI 测试和单元测试都通过了。

I'd like to test and fix this, but I cannot get iOS 11.2.5 simulators.我想测试并解决这个问题,但我无法获得 iOS 11.2.5 模拟器。 The traditional approach is to go to devices and download new simulators in Xcode.传统方法是前往设备并在 Xcode 中下载新的模拟器。 However, even my most recent simulators (11.2) do not show up here.然而,即使是我最近的模拟器 (11.2) 也没有出现在这里。 And no amount of "Check and Install" makes 11.2.5 appear as a choice.再多的“检查并安装”也不会让 11.2.5 成为一种选择。 下载模拟器画面

Please help.请帮忙。 Here is what I have tried.这是我尝试过的。

  • I tried relaunching Xcode and restarting my mac我尝试重新启动 Xcode 并重新启动我的 mac

  • I tried to follow the advice from Hacker Noon - Manually install iOS Simulators .我尝试遵循Hacker Noon - Manually install iOS Simulators 的建议 I downloaded the iOS 11.2.5 builds for iPhone X and iPad Air2.我下载了适用于 iPhone X 和 iPad Air2 的 iOS 11.2.5 版本。 My downloaded files are .ipsw (which keeps trying to open in iTunes) but even after moving the downloaded files to the cache, they do not show up in Xcode.我下载的文件是 .ipsw(它一直试图在 iTunes 中打开)但即使将下载的文件移动到缓存后,它们也不会显示在 Xcode 中。

  • I tried updating my os.我尝试更新我的 os. I was running Sierra.我正在运行塞拉利昂。 Now I am running High Sierra, new XCode tools were downloaded automatically on launch.现在我正在运行 High Sierra,新的 XCode 工具在启动时自动下载。 However, no new simulators.但是,没有新的模拟器。

  • I also went back to developer.apple to look for a whole 11.2.5 download and could not find one.我也回 developer.apple 找了一个完整的 11.2.5 下载,没找到。 On the main developer download page the only whole download is 11.3 beta.主要的开发人员下载页面上,唯一的完整下载是 11.3 beta。 Searching on the See More Downloads is empty for "ios 11.2.5" and just "11.2.5"查看更多下载中搜索“ios 11.2.5”和“11.2.5”是空的

If you're using Xcode 9.2 you have installed the SDK for iOS 11.2 already.如果您使用的是 Xcode 9.2,则您已经为 iOS 11.2 安装了 SDK。 You can prove that by opening System Preferences -> General -> About in the simulator.您可以通过在模拟器中打开System Preferences -> General -> About来证明这一点。 Thus, Xcode will not display n item for downloading it.因此,Xcode 不会显示 n 项供下载。 The SDKs are also only for minor releases. SDK 也仅适用于次要版本。 There are no SDKs for different patch versions.没有针对不同补丁版本的 SDK。

If you actually have a bug that occurs in this version, you should get a corresponding device and test it for it.如果您确实在此版本中出现了错误,则应该获取相应的设备并对其进行测试。 I suspect, however, that this is due to the differences between simulator and real hardware.然而,我怀疑这是由于模拟器和真实硬件之间的差异。

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

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