Xcode will not compile for simulator

I just updated Xcode 4.5 through the App Store from my previous version, which I received from my Apple Developer account. Since the update, I can not compile applications in Simulator. I can compile on a device, for example. my iPhone.

I get an error

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/ Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/Availability.h' has been modified since the precompiled header was built 1 error generated. 
+4
source share
4 answers

go to ~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook} and delete the folder with your project name.

EDIT After sentence

NOTE.

By default, the library folder is hidden, so we don’t see it.
So we have three ways to use this hidden folder ~ / Library

1.Do not browse the library by running the following command to display the ~ / Library folder

 chflags nohidden ~/Library 

Now you can see the library folder as / Users // Library

2. Open the GO finder menu and press the Alt key, and the library will be visible as a new menu item.
Select this to open the library folder.

3. You can access the ~ / Library folder using the terminal.

+23
source

The easiest way: just a clean project (Product> Clean)

+8
source

You can simply open the Organizer (the upper right corner of Xcode), go to the "Projects" tab, select the project on the left and then delete the data.

+1
source

This happened when I upgraded Xcode from 6.0.1 to 6.1

I cleaned up the project and was able to successfully compile !!

0
source

Source: https://habr.com/ru/post/1435434/


All Articles