I'm trying to build my Unity game through XCode, but I'm having a lot of trouble with Firebase. First, I was getting lots of errors about missing references, because my Podfile was generated incorrectly by the editor. It was searching for the wrong versions of the plugin, as specified in the .xml files. I resolved that by removing the versions in the Podfile and launching 'pod repo update' and 'pod install'. After that, when I try to build again, I get this:
Undefined symbols for architecture armv7: "firebase::ReferenceCountedFutureImpl::ReleaseMutexAndRunCallback(unsigned long)", r eferenced from: void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*)::'lambda'(void*)>(unsigned long, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*)::'lambda'(void*) const&) in libFirebaseCppInstanceId.a(instance_id_e6ccc884c5840734a302e2aabfa8925c.o) void firebase::ReferenceCountedFutureImpl::CompleteInternal, std::__1::allocator >, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal, std::__1::allocator > >(unsigned long, int, char const*, std::__1::basic_string, std::__1::allocator > const&)::'lambda'(std::__1::basic_string, std::__1::allocator >*)>(unsigned long, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteWithResultInternal, std::__1::allocator > >(unsigned long, int, char const*, std::__1::basic_string, std::__1::allocator > const&)::'lambda'(std::__1::basic_string, std::__1::allocator >*) const&) in libFirebaseCppInstanceId.a(instance_id_e6ccc884c5840734a302e2aabfa8925c.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I remove armv7 as architecture and leave only arm64 I get the same error, but with an additional warning:
ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/user/Desktop/Unity - XCode/XWApp/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
I tried everything I could, I don't know where to look anymore. Does somebody have an idea? Thank you.