I’m making a game in Xcode, but needed to create an Objective C file to access certain data that I saved into an NSMutableArray to bring into the C++ code. I have a .mm file to that is called by the C++ file which in turn calls the Objective C file.
Here’s my problem. The header file for the .mm file won’t accept any data structure I put into it. The .mm file will, but not it’s header. When I try entering anything into it like
static NSObject* objectiveCCall();
It’ll say its never heard of an NSObject and asks I replace it with a CCObject, which it will then say its never heard of.
I think the issue might be the fact that if I try including
#import < Foundation/Foundation.h>
It’ll crash at NSObjCRuntime.h