Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jnesbitt82

macrumors 6502
Original poster
Oct 21, 2013
322
240
Ohio
Hey guys,

I started having issues when attempting to load a new app onto my iPad for testing. The app works perfectly on the iOS simulator but when I try to play it on my iPad, I get this error, "Lexical or Preprocessor Issue 'UIKit/UIKit.h' file not found. After looking the app over, I decided to try another route. I deleted other apps I've made from the iPad and attempted to reload them. Now they are having the same issue. So whats going on, any ideas? Thanks!
 
Hey guys,

I started having issues when attempting to load a new app onto my iPad for testing. The app works perfectly on the iOS simulator but when I try to play it on my iPad, I get this error, "Lexical or Preprocessor Issue 'UIKit/UIKit.h' file not found. After looking the app over, I decided to try another route. I deleted other apps I've made from the iPad and attempted to reload them. Now they are having the same issue. So whats going on, any ideas? Thanks!

Post the first part of the header file that is throwing this error.
 
Sorry for taking so long in replying. Here is what shows up:

Code:
//
//  Prefix header
//
//  The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
[COLOR="Red"]    #import <UIKit/UIKit.h>[/COLOR]
    #import <Foundation/Foundation.h>
#endif


According to Xcode, the UIKit.h does not exist in any of the apps. Keep in mind that this error only happens when attempting to launch the app on my iPad, not on the simulator. The common link to all of my problems is the iPad. I'm assuming its corrupted but don't know how it happened or how to fix.
 
Last edited by a moderator:
Sorry for taking so long in replying. Here is what shows up:

Code:
//
//  Prefix header
//
//  The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
[COLOR="Red"]    #import <UIKit/UIKit.h>[/COLOR]
    #import <Foundation/Foundation.h>
#endif


According to Xcode, the UIKit.h does not exist in any of the apps. Keep in mind that this error only happens when attempting to launch the app on my iPad, not on the simulator. The common link to all of my problems is the iPad. I'm assuming its corrupted but don't know how it happened or how to fix.

Uikit.h is the header file for one of the main frameworks that is linked against iOS apps. It sounds like the SDK you are linking against is missing or incomplete. What version of iOS is set as the "base SDK" in your project?

And what happens if you build a single view empty project from the template and try to run that on your device?
 
Last edited by a moderator:
I couldn't figure out the issue I was having. However, After updating my iPad to iOS 7.1Beta, it seems to have fixed the issue. Everything is running smoothly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.