sftsz sftsz -4 years ago 184
iOS Question

PrefixHeader.pch file can't find headers

I have a small prefix header file

#ifndef UP_FOR_IT_PrefixHeader_pch
#define UP_FOR_IT_PrefixHeader_pch

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <Parse/Parse.h>
#import "ABConstants.h"
#import "ABCache.h"
#endif
#endif


it can't find Parse.h. I linked it from
Link binary with libraries
everything seems right but whatever I tried it does't compile. I tried removing the lib and import again but nothing changed. Removed indexes on derived data but still no clue.

What should I try? It took 2 hours and still not working.

Xcode 6. IOS 8

Answer Source

Select your project (named "Project" for example) and click on "ProjectTests" (in TARGETS section). Then, go to Build Phases > Link Binary With Libraries and add Parse.framework

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download