UIKit/UIKit.h file not found

Discussion in 'iOS Programming' started by Jnesbitt82, Nov 17, 2013.

  1. Jnesbitt82 macrumors 6502

    Jnesbitt82

    Joined:
    Oct 21, 2013
    Location:
    Ohio
    #1
    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!
     
  2. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #2
    Post the first part of the header file that is throwing this error.
     
  3. Jnesbitt82, Nov 17, 2013
    Last edited by a moderator: Nov 18, 2013

    Jnesbitt82 thread starter macrumors 6502

    Jnesbitt82

    Joined:
    Oct 21, 2013
    Location:
    Ohio
    #3
    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.
     
  4. Duncan C, Nov 18, 2013
    Last edited by a moderator: Nov 18, 2013

    Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #4
    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?
     
  5. Jnesbitt82 thread starter macrumors 6502

    Jnesbitt82

    Joined:
    Oct 21, 2013
    Location:
    Ohio
    #5
    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.
     

Share This Page