문제

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface SomeClass : NSObject
{
    CLLocation *location;
    //...
}

//...

Code seems okay, right? But I still get "Unknown type name 'CLLocation'", even though CoreLocation.framework is imported to "Link Binary with Libraries" and CoreLocation.h is imported.

This error occured after I added a new target to the project - "Cocoa Touch Unit Testing Bundle". CoreLocation.framework is imported to this target, too.

도움이 되었습니까?

해결책

Removing and adding the framework back is the best solution through which i solved a same problem.Also make sure you have added framework to unit test project.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top