Flatlyn
Flatlyn

Reputation: 2050

Xcode Won't Compile To Simulator

I've just updated Xcode 4.5 via the App Store, from my previous version which I got from my Apple Developer Account. Since the update I can't compile any apps into the Simulator. I can compile onto a device, e.g. my iPhone.

The error I recieve is

    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.

Upvotes: 4

Views: 5846

Answers (4)

thatzprem
thatzprem

Reputation: 4767

This happened when I updated Xcode from 6.0.1 to 6.1

I cleaned the project and could compile successfully!!

Upvotes: 0

amfcosta
amfcosta

Reputation: 1061

You can just open the Organizer (top-right corner of XCode), go to the Projects tab, select your project on the left and then delete the Derived Data.

Upvotes: 1

CRDave
CRDave

Reputation: 9285

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

EDIT After suggestion

NOTE:

By default Library Folder is hidden so we can't see it.
So we have three way to use this hidden ~/Library folder

1.Unhide Library folder by following command to unhide ~/Library folder

chflags nohidden ~/Library

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

2. Open GO menu of finder and press Alt key and Library will be visible as new menu item.
Select that to open Library folder

3. You can access ~/Library folder by Terminal.

Upvotes: 23

Yaroslav Fedorov
Yaroslav Fedorov

Reputation: 361

There's easiest way: Just "clean" project (Product > Clean)

Upvotes: 8

Related Questions