XCode 7 (Beta 3 & 4) Could not download and install iOS 8.* simulator

自作多情 提交于 2019-12-03 05:36:48

问题


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


回答1:


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.




回答2:


sorry for the post, I don't have 50 reputation to comment. i am having this same issue. Any further progress? If I happen to come across a solution I will let you know. What have you tried?

--------- UPDATE -------

So I have found a work around.... if you are trying to get it to deploy to an iPhone.

If you still have the previous xCode file... you can navigate to Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

copy the simulators and SDKS you want over to the same location in Xcode-beta.app and paste... granted those downloads still won't download, but this will allow for the simulator to run on your iPhone.

I got this from Using the device simulator for iOS 8 with Xcode 7

and verified it works.




回答3:


XCode 7 and above does not support simulators 8.4 and earlier. Please check my answer on the post here.



来源:https://stackoverflow.com/questions/31396936/xcode-7-beta-3-4-could-not-download-and-install-ios-8-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!