XCode 7 (Beta 3 & 4) Could not download and instal

2019-03-09 17:14发布

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:

Downloads tab of Xcode 7 preferences

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

Failed simulator install error message

3条回答
神经病院院长
2楼-- · 2019-03-09 17:52

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

查看更多
迷人小祖宗
3楼-- · 2019-03-09 17:59

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.

查看更多
Summer. ? 凉城
4楼-- · 2019-03-09 18:02

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.

查看更多
登录 后发表回答