4

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.
Flatlyn
  • 2,040
  • 6
  • 40
  • 69

4 Answers4

23

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.

CRDave
  • 9,279
  • 5
  • 41
  • 59
  • 1
    Note that the ~/Library folder is hidden by default. You will have do this via terminal or show hidden files in Finder. – pinkeerach Jan 15 '13 at 19:50
  • 1
    yap thanks pinkeerach. one other short cut is open Go menu and press Alt. Library will be display as menu item. – CRDave Jan 16 '13 at 07:24
  • I have `chflags nohidden ~/Library` in my zsh profile. The Library gets hidden every time OS X updates, so this ensures it is always unhidden. – Zev Eisenberg Jul 15 '13 at 14:39
8

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

Florent
  • 12,310
  • 10
  • 49
  • 58
1

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.

amfcosta
  • 1,049
  • 10
  • 21
0

This happened when I updated Xcode from 6.0.1 to 6.1

I cleaned the project and could compile successfully!!

thatzprem
  • 4,697
  • 1
  • 33
  • 41