I’m trying to get CoronaCards to build in a Unity 5.3.4 project using Xcode 7.2.1.
I’ve been able to get Xcode to compile with some adjustments to the docs (see below), but I’m still getting errors in the linking stage.
Undefined symbols for architecture armv7:
“std::__1::__shared_weak_count::~__shared_weak_count()”, referenced from:
std::__1::shared_ptr<Pfx::Asm::UnpackedData> std::__1::shared_ptr<Pfx::Asm::UnpackedData>::allocate_shared<Alg::UserAllocator<Pfx::Asm::UnpackedData>, Pfx::Asm::Assembly&>(Alg::UserAllocator<Pfx::Asm::UnpackedData> const&, Pfx::Asm::Assembly&&&) in libiPhone-lib.a(asmdecodedassemblies.o)
std::__1::__shared_ptr_emplace<Pfx::Asm::UnpackedData, Alg::UserAllocator<Pfx::Asm::UnpackedData> >::~__shared_ptr_emplace() in libiPhone-lib.a(asmdecodedassemblies.o)
std::__1::__shared_ptr_emplace<Pfx::Asm::UnpackedData, Alg::UserAllocator<Pfx::Asm::UnpackedData> >::~__shared_ptr_emplace() in libiPhone-lib.a(asmdecodedassemblies.o)
Any ideas?
Some things I had to do to get things to compile in Xcode with the build files for Unity 5:
-
createViewHierarchy has been deprecated–the CoronaView has to go in createUI in UnityAppController+ViewHanlding.mm
-
Automatic Reference Counting has to be disabled for Objective C (in build settings) for autorelease not to throw an error in _coronaController = [[[CoronaViewController alloc] init] autorelease];
-
Error thrown because ‘context’ in
//Added for OpenGL context
[EAGLContext setCurrentContext:_mainDisplay->surface.context];
didn’t exist as a property. Removed this line, which probably wasn’t a good idea.