Reputation: 33146
After going round in circles for ages on this one, I'm asking and self-answering for future readers:
Upvotes: 0
Views: 442
Reputation: 33146
Took me ages and ages to see this, I couldn't find any hits on SO, but the cause is:
Issue in Apple's "create class extension" template, IF the project was ORIGINALLY created as a static-library:
By default, instead of #import'ing the class you're extending, it #import's the library's global file - which might be what you want (if you want to export this class header), but which may or may not contain that header.
To fix it, manually #import the original class's header into the class-extension, and your sanity will be restored.
Upvotes: 1