0

I have problem with Xcode 7.3.1 on OSX(10.11.4 El capitan) , namely, when i try to install any simulator using sudo /Applications/Xcode.app/Contents/MacOS/Xcode i get this error:

could not download and install ios 9.1 simulator
when files are moved to the final location of an unexpected error occured

what's wrong?

here the log

Mac-Pro-USER:~ MAC$ sudo /Applications/Xcode.app/Contents/MacOS/Xcode

Password:

2016-12-10 20:53:12.103 Xcode[3581:19770] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.

2016-12-10 20:53:12.297 Xcode[3581:19727] CoreSimulatorService connection interrupted.  Resubscribing to notifications.

2016-12-10 21:10:24.889 Xcode[3581:19708] [MT] DVTDownloadable: Error Domain=PKInstallErrorDomain Code=120 "Could not download and install iOS 9.1 Simulator. could not download and install ios 9.1 simulator  when files are moved to the final location of an unexpected error occured." UserInfo={NSLocalizedDescription=Could not download and install iOS 9.1 Simulator. 
could not download and install ios 9.1 simulator
when files are moved to the final location of an unexpected error occured., arguments=(

    "-f",

    "-s",

    "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager-SystemSoftware/C63C631F-0C12-4AAD-9864-7A0B007C6ACF.activeSandbox/Root",

    "/"

), NSUnderlyingError=0x7ff2fbfda940 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

2016-12-10 21:10:47.884 Xcode[3581:29128] This process won't be able to use DD remote data sources
jsonscript
  • 11
  • 2
  • What do you mean "using `sudo /Applications/Xcode.app/Contents/MacOS/Xcode`". How are you trying to install? (Recommend to use Xcode8 stable from App Store btw.) – shallowThought Dec 10 '16 at 18:36
  • i mean that, initially i opened Xcode then-components then install simulator and got this error, on stackoverflow i found, that to download simulator i should via terminal using command sudo /Applications/Xcode.app/Contents/MacOS/Xcode. But same error. Could you give me direct link for 8 Xcode or Can I install it using terminal – jsonscript Dec 10 '16 at 18:46
  • Why are you using terminal at all? Just open Xcode, the app, in the normal way, and install any desired extra simulators from the Preferences pane. – matt Dec 10 '16 at 18:58
  • When i open myapp. xcodeproject , i always get error, that this locked, and i don't know how to unlock, i did it in finder,but got error that parent category locked, but it's not true, i change attribute to read and write – jsonscript Dec 10 '16 at 19:05

1 Answers1

0

Open Xcode.

In the menu bar, click Xcode -> Preferences.

Once in the Preferences screen, click the Components tab.

Now, Click the down arrow next to the desired Simulator.

You can also check the validity of having saved each simulator by checking the directory where your simulators save.

Additionally, check the box that says "Check for and Install updates automtically" to avoid more problems of this nature.

Ryan Cocuzzo
  • 2,538
  • 4
  • 28
  • 51