xcode-beta 7 hang fix?

I'm usinsg Version 7.0 beta 3 (7A152u), the latest, on my new macbook pro. It is running El Capitan 10.11 Beta (15A244d). Each time I try to build a newly created project or when I attempt to load a project created in the last version, xcode hangs.


Anybody else having this same problem?


Anyone found a workaround?


Thanks

Answered by Technology Evangelist in 37127022

There is a known incompatibility with Xcode running on the latest OS X El Capitan beta (build 15A244d). The following workaround will allow Xcode to run on this build until a future beta of El Capitan can be released to fix the issue.


Open Terminal.app and enter the following four lines (hitting RETURN after each line):


sudo xcode-select -s /path/to/Xcode-beta.app
[[ -d /Library/Developer/CoreSimulator ]] && sudo mv /Library/Developer/CoreSimulator{,.bak}
sudo mv $(xcrun --sdk iphonesimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak}
sudo mv $(xcrun --sdk watchsimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak}


You should reboot your Mac after making the above changes. In the future, after a new El Capitan beta is released and you have updated, you will need to put your Mac back into its normal state by rolling back the above change. To do that, you will need to launch Terminal.app and enter the following single line and hit RETURN:


[[ -d /Library/Developer/CoreSimulator.bak ]] && sudo mv /Library/Developer/CoreSimulator{.bak,}


Then reboot. Your system will then be in a standard state.

Oops. Missed beta 4. I'm downloading it now. I'll update this question when I've got it installed and running.

No joy. Same problem with xcode beta 4.


😟

Hi Yenrab,


I have exactly the same issue after updating to El Capitan 10.11 Beta (15A244d). Also the springboard keeps giving an error and shuts down.


😟

From reading the posts on the forums here it's pretty obvious that 10.11 beta 6 broke the development environment Xcode.


I bet the developers inside Apple are racing to fix whatever this problem is. It probably impacted in-house development @ Apple too. 😉


Hope we see an Xcode fix really soon.

I am having the EXACT same problem. I'm also on 10.11 Beta (15A244d) with XCode 7 Beta 4. I started going into an infinite loop of springboard errors and then XCode won't build anything.


At first I thought it might be issues in my code so I created a new project but that won't run. In fact, it gets stuck on Indexing.


I'm completely stuck so I hope that Apple can figure out what's wrong quickly.

Same Problem - simulator giving constant SpringBoard errors and unable to open any XIB's. When I try to open a XIB, X-Code 7 crashes....


In fact can not compile anything now.... even though I have re-installed X-code 7 from scatch...


Have had to fall back on my old iMac running OS X 10.4 for the moment... such a waste of time when instead I am used to running everything on my iMac Retina.


Here's to hoping Apple solves this soon !

+1 - same here - Apparently latest OSX (10.11 Beta (15A244d)) release broke XCode Beta 4

same as every one .. hope a fix very soon .. for now i have yosemite running on parallel desktop for keeping coding ... what a shame ..

Correction: I was able to restore El Capitan Beta 45 from Time Machine and things are working again with XCode 7 Beta 4. Pushing my work to github allowed me to not miss much, but it's a drag.


I hope they can fix this soon!

Same issue here, hopefully someone is scrambling to fix this.

Accepted Answer

There is a known incompatibility with Xcode running on the latest OS X El Capitan beta (build 15A244d). The following workaround will allow Xcode to run on this build until a future beta of El Capitan can be released to fix the issue.


Open Terminal.app and enter the following four lines (hitting RETURN after each line):


sudo xcode-select -s /path/to/Xcode-beta.app
[[ -d /Library/Developer/CoreSimulator ]] && sudo mv /Library/Developer/CoreSimulator{,.bak}
sudo mv $(xcrun --sdk iphonesimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak}
sudo mv $(xcrun --sdk watchsimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak}


You should reboot your Mac after making the above changes. In the future, after a new El Capitan beta is released and you have updated, you will need to put your Mac back into its normal state by rolling back the above change. To do that, you will need to launch Terminal.app and enter the following single line and hit RETURN:


[[ -d /Library/Developer/CoreSimulator.bak ]] && sudo mv /Library/Developer/CoreSimulator{.bak,}


Then reboot. Your system will then be in a standard state.

It worked. Thanks for the pointer.

Thank you for the tip. The first line of this code is a bit confusing, especially this part:

/Path/to/xcode-beta.app


Instead of writing the exact path to the app, you can find Xcode beta in OSX Application folder and drag the app icon and drop it to terminal. It will insert the path. I hope this tip will help some of the beginners like me.

@rattei - you say


"The following workaround will allow Xcode to run on this build until a future beta of El Capitan can be released to fix the issue"


However, the release notes for the just released XCode Beta 5 say:


"Xcode 7 beta 5 resolves issues with building iOS projects and running the iOS simulator on OS X El Capitan beta 6. (22089926)"


It sounds like XCode has fixed the problem described in this thread. Can you verify?


I ask because I backed down to the previous beta of OS X due to this issue.

I can confirm xcode beta 5 works with el capitan beta 6

xcode-beta 7 hang fix?
 
 
Q