Undefined symbols for architecture arm64 - JSClassCreate

原文网址:https://stackoverflow.com/questions/54515175/undefined-symbols-for-architecture-arm64-jsclasscreate

Undefined symbols for architecture arm64:
"_JSClassCreate", referenced from:
void std::__1::__call_once_proxy)::$_0&&> >(void*) in libReact.a(JSCRuntime.o)
void std::__1::__call_once_proxy)::$_1&&> >(void*) 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)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
"_JSEvaluateScript", referenced from:
facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr >, std::__1::basic_string, std::__1::allocator > const&) in libReact.a(JSCRuntime.o)
"_JSGlobalContextCreateInGroup", referenced from:
facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
"_JSGlobalContextRelease", referenced from:
facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
facebook::jsc::JSCRuntime::~JSCRuntime() in libReact.a(JSCRuntime.o)
facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
"_JSGlobalContextRetain", referenced from:
facebook::jsc::JSCRuntime::JSCRuntime(OpaqueJSContext*) in libReact.a(JSCRuntime.o)

解决方法:
Make sure JavaScriptCore.framework is added to Link Binary With Libraries

 

你可能感兴趣的:(Undefined symbols for architecture arm64 - JSClassCreate)