手动下载iOS模拟器安装

news/2024/7/20 23:12:06 标签: iOS, 模拟器, Simulator, 下载失败, Xcode

官方文档

安装和管理模拟器提供通过 Xcode 安装和命令行安装方式,如果下载速度太慢或者总是安装失败请参考下面:

iOS_Simulator_Xcode_in_Command_Line_and_Install_it_8">How to Download iOS Simulator (Xcode) in Command Line and Install it

通过获取模拟器下载地址,使用其他多线程下载软件来手动下载,能更快下载速度。

Steps

  1. Start Xcode in command line by running this in commandline /Applications/Xcode.app/Contents/MacOS/Xcode
  2. Start downloading of the simulator
  3. Cancel it. YES CANCEL IT!
  4. You will get a message like this:
    2015-11-23 17:10:01.906 Xcode[30803:2505495] DVTDownloadable: Download Cancelled. Downloadable: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK8_3-8.3.1.1428621365.dmg.
  5. Quit Xcode
  6. Use your favorite download tool with the link in that message in step 3
  • This is what I use: (5 concurrent connection) aria2c -x 5 link_to_the_file
  1. Have Fun!

Wait! How can I install this?

By moving the file to ~/Library/Caches/com.apple.dt.Xcode/Downloads 或者/Users/xxxx/Library/Caches/com.apple.dt.Xcode/Downloads

  • You can use Finder by open ~/Library/Caches/com.apple.dt.Xcode/Downloads
  • Or just mv file ~/Library/Caches/com.apple.dt.Xcode/Downloads

And open the Downloads tab in Xcode’s Preferences,

  • the progress bar of the item you just download should be 80% filled
  • you should be able to click that download button to install the file
  • 或者重启 Xcode 选择对应的模拟器安装,无需下载瞬间安装。

Why did I need it?

I am in China right now and when downloading in Xcode(no concurrent downloading), the download speed sucks!
I would like to use aria2 to speed up the downloading process of the simulator(s).

Xcode_and_how_fast_was_it_when_using_aria2_42">How slow was the connect using Xcode and how fast was it when using aria2?

  • Xcode: 150KB -> 300KB
  • aria2: 2.7MB (consistenly), which is the maximum downloading speed of my cable

Why aria2?

  • Concurrent connections
  • Resuming unfinished downloads

References

  • https://forums.developer.apple.com/message/51550#52580 where I found out ~/Library/Caches/com.apple.dt.Xcode/Downloads
  • iOS 模拟器下载地址懒得通过命令行获取地址的同学可以直接使用下载。

http://www.niftyadmin.cn/n/4965582.html

相关文章

穿越网络迷雾的神奇通道 - WebSocket详解

WebSocket,作为一项前端技术,已经成为现代Web应用不可或缺的一部分。本文将深入解析WebSocket,介绍其工作原理和用途,并通过简单的代码示例,让你对这个神奇的网络通信协议有更深入的了解。 WebSocket是什么&#xff1…

顺序表详解|顺序表常见错误并调试分析

前言: 今天我们开始学习基础的数据结构——顺序表,数据结构就是将数据在内存存储起来,在内存管理数据。 一、线性表 1、线性表(Linear list)是n个具有相同特性的数据元素的有限序列,线性表是一种在实际中广…

MyBatis分页思想和特殊字符

目录 一、MyBatis分页思想 1.1 使用场景 1.2 代码演示 二、MyBatis特殊字符 2.1代码演示 一、MyBatis分页思想 1.1 使用场景 Mybatis分页应用场景: MyBatis是一个Java持久层框架,它提供了一种将SQL查询和结果映射到Java对象的简单方式。分页是MyBa…

Vue中ElementUI结合transform使用时,发现弹框定位不准确问题

在近期开发中,需要将1920*1080放到更大像素大屏上演示,所以需要使用到transform来对页面进行缩放,但是此时发现弹框定位出错问题,无法准备定位到实际位置。 查看element-ui官方文档无果后,打算更换新的框架进行开发&am…

关于cesium中tif文件处理加载在三维地图中得方式

项目场景: 在Gis项目关于tif影像数据是不能直接在地图上面加载,只能通过后端进行处理,或者前端进行处理之后才能叠加到地图上面! 处理方式 1.安装geotiff插件 npm install geotiff -g2.利用插件处理tif文件 import GeoTIFF, { fromBlob, fromUrl, fromArrayBuff…

基于labview设备状态监测和故障诊断(一)NI软硬件介绍

随着近代工业逐步向机电一体化方向发展。设备的自动化、智能化、大型化与复杂 化程度的不断提高,设备发生故障给企业所带来的经济损失越来越大,因此对设备的运 行状况进行实时监测和故障诊断势在必行。可以这样说,机械设备的工作状况监测和…

【JMeter】常用线程组设置策略

目录 一、前言 二、单场景基准测试 1.介绍 2.线程组设计 3.测试结果 三、单场景并发测试 1.介绍 2.线程组设计 3.测试结果 四、单场景容量/爬坡测试 1.介绍 2.线程组设计 3.测试结果 五、混合场景容量/并发测试 1.介绍 六、稳定性测试 1.介绍 2.线程组设计 …

亚马逊鲲鹏测评养号系统是怎么用的

亚马逊鲲鹏系统是一款可以全自动测评养号的软件,有批量注册亚马逊买家号、AI智能养号、自动绑定收货地址及支付卡、开通二步验证、根据关键词货比三家后进行加购、下单、留评等。 想要使用这款软件进行下单,那么首先我们需要有买家账号才行,买…