0

I created a tabbed application with xCode 5.01, recently downloaded from Apple, and put nothing else in it. It runs fine on the simulator, but when I try to run it on my iPhone 4S, which has OS6 on it, the build fails with these errors:

  1. UIKit/UIKit.h is not found.

  2. The Prefix.pch file is not found.

I looked everywhere and changed the deployment target to 6.0, but it doesn't solve the issue. What's going on?

EDIT: also, following an advice, I deleted the UIKit framework, but when I tried to re-add it (as per the advice) it turns out it's not there.

EDIT 2: Reinstalling xCode solved the issue. Go figure.

Eddy
  • 3,533
  • 13
  • 59
  • 89
  • What is a "tabbed application"? – Enrico Susatyo Dec 01 '13 at 11:28
  • One of the options for an application, when you go to create a new project. Instagram, for example, is a "tabbed application" – Eddy Dec 01 '13 at 11:29
  • Right, I see what you mean. I don't think the app being a tabbed application has any effect for what you're experiencing. Can you give us a screenshot of the error message? And maybe copy and paste the full error log? Do you have the prefix.pch file in your project? Please give more details. – Enrico Susatyo Dec 01 '13 at 11:46
  • 1
    http://stackoverflow.com/a/9481323/1091539 – Mutawe Dec 01 '13 at 11:48
  • Thanks, @Mutawe, I reinstalled xCode and it works now. Go figure. – Eddy Dec 01 '13 at 12:12

1 Answers1

1

Reinstall XCode 5, it is still quite buggy, also when renaming folders, this can cause corrupt data structure inside the project file.

Jeremiah Smith
  • 740
  • 6
  • 17