react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

Undefined symbols for architecture arm64 - iOS

Open cagribeyhalici opened this issue 5 years ago • 0 comments

React Native: 0.59.10 XCode: 11.3 Unity: 2018.2.17 react-native-unity-view: 1.3.0

Hello there. I have tried every solution in the issues. However I cannot reach any solution.

I tried changing universal to arm64 architecture in Player Settings, but didn't work. I even added/subtracted the arm64 in Valid Architectures. Any hints, tips, suggestions is appreciated. Thanks.

Here is my XCode stack trace

`Undefined symbols for architecture arm64:

"_JSObjectGetPrototype", referenced from: facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptrfacebook::jsi::HostObject)::HostObjectProxy::getPropertyNames(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSPropertyNameAccumulator*) in libReact.a(JSCRuntime.o) "_JSObjectCopyPropertyNames", referenced from: facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o) "_JSContextGetGlobalObject", referenced from: facebook::jsc::JSCRuntime::global() in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) "_JSValueMakeString", referenced from: facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) "_JSValueIsNumber", referenced from: facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o) "_JSClassCreate", referenced from: facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptrfacebook::jsi::HostObject)::$_0::operator()() const in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptrfacebook::jsi::HostObject)::HostObjectProxy::getProperty(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSString*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::call(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o) "_JSValueMakeNull", referenced from: facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) "_JSStringCreateWithUTF8CString", referenced from: facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr<facebook::jsi::Buffer const, std::__1::default_delete<facebook::jsi::Buffer const> >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in libReact.a(JSCRuntime.o) ... "_JSObjectSetProperty", referenced from: facebook::jsc::JSCRuntime::setPropertyValue(facebook::jsi::Object&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::setPropertyValue(facebook::jsi::Object&, facebook::jsi::String const&, facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createArray(unsigned long) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) "_JSObjectHasProperty", referenced from: facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) "_JSValueIsObject", referenced from: facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o) "_JSValueMakeBoolean", referenced from: facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o) "_JSValueUnprotect", referenced from: facebook::jsc::JSCRuntime::JSCObjectValue::invalidate() in libReact.a(JSCRuntime.o) "_JSValueToStringCopy", referenced from: facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o) "_JSObjectGetProperty", referenced from: facebook::jsc::JSCRuntime::getProperty(facebook::jsi::Object const&, facebook::jsi::String const&) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::getProperty(facebook::jsi::Object const&, facebook::jsi::PropNameID const&) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) "_JSValueToObject", referenced from: facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptrfacebook::jsi::HostObject)::HostObjectProxy::finalize(OpaqueJSValue*) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptrfacebook::jsi::HostObject)::HostObjectProxy::getPropertyNames(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSPropertyNameAccumulator*) in libReact.a(JSCRuntime.o) facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ` Screen Shot 2019-12-25 at 16 01 33

cagribeyhalici avatar Dec 25 '19 13:12 cagribeyhalici