-5

I have created a workspace with ObjcMongoDB as subproject. Then I've built both frameworks and linked them to my target. By importing #import <ObjCMongoDB/ObjCMongoDB.h> I get an error "NSDictionary+BSONAdditions.h" file not found. Have I forgotten something or I've done it completely wrong?

Mario
  • 4,530
  • 1
  • 21
  • 32
andrexus
  • 165
  • 3
  • 8

2 Answers2

1

Make sure the BSONAdditions header is marked Public in the framework target.

0

Sometimes with frameworks Categories are not imported when building. In your 'Build Settings' under 'Other Linker Flags' add a flag '-ObjC' this will import the categories.

sbarow
  • 2,759
  • 1
  • 22
  • 37