Xcode 7 causing problems in Xcode 6?

I installed the first Xcode 7 beta, and installed the command line tools. Now, I'm getting test failures for tests that pass on my build server (on which I didn't install the beta), and compiler warnings I didn't used to get. I've tried deleting the build folder repeatedly, and I've trashed the beta, but it doesn't make a difference.


What can I do to troubleshoot this and get it working again?

Visit the last tab of Xcode preferences, there is a pop up button to choose the default command line tools. You don't need to install CLT if you have Xcode installed (since Xcode 5 as I remembered). It is embedded inside Xcode. Normally, a beta Xcode would not set itself as the default CLT if a production version is installed, but in your case, it could be that you've manually installed a separate CLT.

I'm not sure whether the command line tools are what's actually causing the issue or not. I only installed them because I was prompted to. I had cheked the Locations preference in Xcode, though, and 6.3.2 is specified.


The errors I'm seeing are within Xcode, not from the command line. My unit tests don't build without modifying the project to add another file to the target, and I'm getting some type of multithreading error when I make that change and they do run. The project builds and tests fine on my build server, on which I never installed the Xcode 7 beta.

You may have the the xcode path set to Xcode-beta rather than Xcode.

Use the following command in terminal to find out which Xcode is default:

xcode-select -print-path


Then use the following to set the default to the default app.

sudo xcode-select -s /Applications/Xcode.app


Or inversely set to the Xcode-beta (if you need to)

sudo xcode-select -s /Applications/Xcode-beta.app
Xcode 7 causing problems in Xcode 6?
 
 
Q