Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 248
bdalziel Avatar asked Jul 14 '15 03:07

bdalziel


1 Answers

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.

like image 63
Justin Michael Avatar answered Oct 21 '22 00:10

Justin Michael