XCode 7(Beta 3& 4)无法下载和安装iOS 8. *模拟器 [英] XCode 7 (Beta 3 & 4) Could not download and install iOS 8.* simulator
问题描述
尝试在XCode 7中获得iOS 8模拟器。在测试版3之前,这是不可能的,但在beta 3发行说明中:
< Xcode 7.0 beta现在支持可下载的传统模拟器。
。我还安装了Xcode 6,但我正在尝试将模拟器安装到Xcode 7 beta 3,其中iOS 8不再是基本操作系统。
错误消息:
无法下载和安装iOS 8.3模拟器。需要授权才能安装软件包
解决方案我找到了 Apple论坛上的另一个解决方法,这个问题不需要下载/拥有其他版本的Xcode。如果您使用
sudo
运行Xcode,模拟器下载并安装工作就好了:sudo /Applications/Xcode.app/Contents/MacOS/Xcode
注意:一旦下载和安装完成后你应该退出Xcode并正常启动。
更新: XCool在我想要的评论中指出一个重要的安全提示突出显示:
确保在使用sudo打开Xcode之前关闭所有项目,否则会出现很多权限问题安装时当前打开的文件。
Trying to get iOS 8 simulators in XCode 7. Prior to beta 3, that wasn't possible but in beta 3 release notes:
"Xcode 7.0 beta now supports downloadable legacy simulators." Xcode 7 beta 3 Release Notes
They also show up in the "Downloads" section:
I'm running into the same problem as reported in this question about XCode 6. I have Xcode 6 still installed, but am trying to install the simulator to Xcode 7 beta 3 where iOS 8 is no longer the base OS.
Error msg:
Could not download and install iOS 8.3 simulator. Authorization is required to install the package
解决方案I found another workaround on the Apple forums for this issue that does not require downloading/having other versions of Xcode. If you run Xcode using
sudo
the simulator downloads and installs work just fine:sudo /Applications/Xcode.app/Contents/MacOS/Xcode
Note: Once the downloads and installs are complete you should quit Xcode and start it normally.
Update: XCool points out an important safety tip in the comments that I wanted to highlight here:
Make sure that you close any projects before opening Xcode using sudo, otherwise there'll be a lot of permission issues with any files that are currently open when the installation occurs.
这篇关于XCode 7(Beta 3& 4)无法下载和安装iOS 8. *模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!