赞
踩
安装和管理模拟器提供通过 Xcode 安装和命令行安装方式,如果下载速度太慢或者总是安装失败请参考下面:
我们可以直接在苹果开发者网站下载对应的模拟器, 然后执行如下
sudo xcode-select -s /Applications/Xcode.app/
xcodebuild -runFirstLaunch
// 路径自行修改下
xcrun simctl runtime add "~/Downloads/watchOS_9.1_Simulator_Runtime.dmg"
simctl 会校验 dmg 文件, 并将模拟器放到合适的位置, 执行完成之后
如果提示:
(1) Operation not permitted
Accessing '/Users/XXXX/Desktop/iOS_17_Simulator_Runtime.dmg' requires Security & Privacy approval.
原因是没有打开终端对完全磁盘的访问权限. 在设置中找到隐私与安全 -> 完全磁盘访问权限 -> 找到终端并打开即可.
将终端权限打开即可。
通过获取模拟器下载地址,使用其他多线程下载软件来手动下载,能更快下载速度。
/Applications/Xcode.app/Contents/MacOS/Xcode
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.
aria2c -x 5 link_to_the_file
By moving the file to ~/Library/Caches/com.apple.dt.Xcode/Downloads
或者/Users/xxxx/Library/Caches/com.apple.dt.Xcode/Downloads
open ~/Library/Caches/com.apple.dt.Xcode/Downloads
mv file ~/Library/Caches/com.apple.dt.Xcode/Downloads
And open the Downloads
tab in Xcode’s Preferences,
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).
aria2
?aria2
: 2.7MB (consistenly), which is the maximum downloading speed of my cablearia2
?~/Library/Caches/com.apple.dt.Xcode/Downloads
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。