Xcode 9-没有iOS 11模拟器 [英] Xcode 9 - no iOS 11 simulator
问题描述
当我打开新的Xcode 9并转到Preferences > Components
时,没有看到下载iOS 11模拟器的选项.我100%确定我拥有最新的Xcode 9 beta 4
When I open up the new Xcode 9 and go to Preferences > Components
I don't see an option to download iOS 11 simulators. I'm 100% sure I have the latest Xcode 9 beta 4
我做了一些研究,发现Xcode下载了一个索引来确定它可以下载什么.对我来说是: https://devimages-cdn.apple.com/downloads/xcode/simulators/index-9.0.0-CA351AD8-3176-41CB-875C-42A05C7CDEC7.dvtdownloadableindex
I did some research and found out that Xcode downloads an index to determine what it is able to download. For me that was: https://devimages-cdn.apple.com/downloads/xcode/simulators/index-9.0.0-CA351AD8-3176-41CB-875C-42A05C7CDEC7.dvtdownloadableindex
基本上,只要确定DTXcoce,便可以将其用于任何Xcode版本:
defaults read /Applications/Xcode-beta.app/Contents/Info DTXcode
.
像0900
这样的结果必须转换为9.0.0
Basically one is able to use it for any Xcode version by determining the DTXcoce:
defaults read /Applications/Xcode-beta.app/Contents/Info DTXcode
.
A result like 0900
must be converted to 9.0.0
和DVTPlugInCompatibilityUUID:
defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID
And the DVTPlugInCompatibilityUUID:
defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID
然后下载:https://devimages-cdn.apple.com/downloads/xcode/simulators/index-<the DTXcode>-<the UUID>.dvtdownloadableindex
.
最后,为了能够打开它:plutil -convert xml1 <the downloaded .dvtdownloadableindex file>
And lastly in order to be able to open it: plutil -convert xml1 <the downloaded .dvtdownloadableindex file>
有人可以验证我是否具有正确的dvtdownloadableindex吗?还是提供正确版本的网址?否则,我希望有人可以像在
Can someone verify I have the right dvtdownloadableindex? Or provide a url to the right version? Otherwise I hope someone can provide the url for the complete simulator package by downloading and cancelling the simulator while looking in to console.app
like in this article
推荐答案
我似乎很愚蠢,浪费了太多不必要的时间.
新的Xcode已经包含了新的iOS 11模拟器(但是不会出现在Xcode的设置中).您只需打开模拟器(/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
)并在Hardware > Device
菜单栏中选择iOS 11设备.
I seem to be pretty stupid, wasting too much time than necessary.
The new iOS 11 simulators were already included in the new Xcode, (however the won't appear in the settings of Xcode) . You can just open up the simulator (/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
) and choose an iOS 11 device in the Hardware > Device
menu bar.
Xcode.app
也可以是Xcode-beta.app
.
这篇关于Xcode 9-没有iOS 11模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!