1

I have a readymade project in iOS which includes various frameworks like: MapKit , SDWebImage, CoreLocation , etc. When i try to run the project i get error:

Lexical or preprocessor issue: CoreLocation/CoreLocation.h not found

But CoreLocation/CoreLocation.h is present. I deleted and again added the mapkit and corelocation frameworks. Still i get the same error. I also cleaned and built the project- same error. I even deleted the workspace and reopened it by referring this link :Compile, Build or Archive problems with Xcode 4 (and dependencies)

Still the same error.

How do i solve this? Any solutions are welcomed.

Community
  • 1
  • 1
z22
  • 9,653
  • 17
  • 66
  • 122
  • Can you post the code where you import CoreLocation.h? – WDUK Oct 25 '13 at 11:19
  • if you are 100% sure that you have imported the CoreLocation framework... How do you import the framework's headers? #import "CoreLocation/CoreLocation.h", or #import ? – Manu Oct 25 '13 at 12:24
  • What are your framework search paths from build settings? – sffc Dec 31 '13 at 10:54

1 Answers1

0

Assuming you're on Xcode 5, use @import CoreLocation instead of #import. This takes advantage of the new modules feature in LLVM to import the headers AND link against the framework for you.

Community
  • 1
  • 1
RyanR
  • 7,662
  • 1
  • 22
  • 39