i currently working on implementing the mopub SDK in iOS our game ( https://github.com/mopub/mopub-ios-sdk )
the game is mostly written in C++ with a bit of objective C++. We use XCODE 7 and ios SDK 9.0
we dont have .m file in the project.
While following the get setting started guide , I experience an issue with the following step :
“Drag the MoPubSDK folder into your Xcode application group (be sure to check the “Copy items into destination group’s folder” option).”
If i tried to build after adding the folder, I can tons of errors like this in the project sources files
Unknown type name ‘namespace’
If I remove the mopub folder, the project compiles fine again.
Looks like there is a Objective C / C++ / Objective C++ mess but my previous attemps to fix was unsuccesfull.
I made a script to rename each .m file to .mm but looks like the mopub framework has some issue in objective C++ (I had to comment some parts , so I guess it s not the right solution)
Any tips for this ? maybe starting from a framework rather than source code will help. is there any particular reason why mopub guys ship the library as source code ?