Reputation: 12948
I've got static library that has file first.h that is public and second.h which is private. In file first.h i would like to #import "second.h", but i can't (error: first.h file not found). The question is what to do with such case?
I wouldn't like to make second.h public, because i don't want it to be used outside of framework, but i would like to use it inside framework.
Any help welcomed!
Upvotes: 1
Views: 425
Reputation: 12948
One can't import private files of static library. To do it one have either to move file from private to public in the library project settings or use another class to achieve the goal.
Upvotes: 0
Reputation: 4336
import second.h inside first.m. Your first.h/.m would look like the following.
//First.h
@interface First : NSObject
@end
//First.m
#import "Second.h"
@implementation
@end
Upvotes: 1