xcode 工程没有模拟器,Xcode 9-没有iOS 11模拟器

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 3d64e7b9e93913fe4e9aeb24bd34a919.png

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

And the DVTPlugInCompatibilityUUID:

defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID

Then download: https://devimages-cdn.apple.com/downloads/xcode/simulators/index--.dvtdownloadableindex .

And lastly in order to be able to open it: plutil -convert xml1

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

解决方案

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 can be Xcode-beta.app too.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Xcode是苹果公司开发的一款集成开发环境(IDE),用于开发iOS和macOS应用程序。要创建iOS模拟器,您可以按照以下步骤进行操作: 1. 首先,确保您已经安装了Xcode。您可以在App Store中搜索Xcode并进行安装。 2. 打开Xcode后,选择“创建新项目”或使用快捷键Command + Shift + N。 3. 在弹出的窗口中,选择“iOS”选项,并选择您想要创建的应用程序类型,例如“Single View App”。 4. 在下一步中,您需要为您的项目选择名称、组织标识符和语言。 5. 在“设备”下拉菜单中,选择“iOS Simulator”。 6. 在“iOS Simulator”下拉菜单中,选择您想要模拟的iOS设备版本。 7. 点击“下一步”并选择您想要保存项目的位置。 8. 最后,点击“创建”按钮,Xcode将为您创建一个新的iOS模拟器项目。 现在,您可以使用Xcode创建的iOS模拟器来运行和测试您的应用程序。请注意,您可以在Xcode中选择不同的iOS设备版本来模拟不同的设备和操作系统环境。 #### 引用[.reference_title] - *1* [xcode ios 模拟器安装运行](https://blog.csdn.net/weixin_50408263/article/details/126480094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Xcode模拟iPhone教程!](https://blog.csdn.net/weixin_43219158/article/details/87627576)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值