Changed a whole bunch of things.
Mainly due to this post:
"
jgranick commented on Jun 20, 2013
Ah, got it.
The iOS project template expects the NDLL name, plus "_register_prims"
Then that means <ndll name="TestExtension" /> will expect "TestExtension_register_prims" in the binary.
We can either change the extension template to use the extension name (without lowercase) for register prims, or
perhaps we should default the output file name to lowercase? That way, it will be "testextension.iphoneos.a" and should work properly.
"
Since the error indicates that it searching for both the uppercase and lowercase register_prims.
Also the name of the extension can conflict with the ndll so I changed that as well.
Maybe the most important thing was that the namespace didn't had a main in the ExternalInterface.cpp
Once that was done the otool could find the _gamea_register_prims in the archive:
* otool -tvf libgamea.iphoneos.a | grep prims
_gamea_register_prims
So if you could use test that ExternalInterface thing first.
void initGA(value gameKey, value secretKey)
{
initializeWithGameKey(val_string(gameKey), val_string(secretKey));
}
DEFINE_PRIM(initGA, 2);
// gamea is the namespace I've used
extern "C" void gamea_main()
{
}
DEFINE_ENTRY_POINT(gamea_main);
extern "C" int gamea_register_prims()
{
return 0;
}
If that fails you can have my version and inspect the extension for all the differences ....
There was a space in the Resources directory which I made a symbolic link for among other crazy stuff that was changed like namespaces,
functionnames and mixing stuff from previous extensions by m.e. so it is truely a mess now.
I've got it to run to my iPhone 5s running ios 10.3