cocoapods导入rn编译问题



  • Undefined symbols for architecture arm64:
    "facebook::react::customJSCWrapper()", referenced from:
    -[RCTDevSettings isJSCSamplingProfilerAvailable] in libReact.a(RCTDevSettings.o)
    -[RCTDevSettings toggleJSCSamplingProfiler] in libReact.a(RCTDevSettings.o)
    "facebook::react::systemJSCWrapper()", referenced from:
    -[RCTDevSettings isJSCSamplingProfilerAvailable] in libReact.a(RCTDevSettings.o)
    -[RCTDevSettings toggleJSCSamplingProfiler] in libReact.a(RCTDevSettings.o)
    "facebook::react::parseTypeFromHeader(facebook::react::BundleHeader const&)", referenced from:
    +[RCTJavaScriptLoader attemptSynchronousLoadOfBundleAtURL:runtimeBCVersion:sourceLength:error:] in libReact.a(RCTJavaScriptLoader.o)
    "_JSNoBytecodeFileFormatVersion", referenced from:
    +[RCTJavaScriptLoader loadBundleAtURL:onProgress:onComplete:] in libReact.a(RCTJavaScriptLoader.o)
    +[RCTJavaScriptLoader attemptSynchronousLoadOfBundleAtURL:runtimeBCVersion:sourceLength:error:] in libReact.a(RCTJavaScriptLoader.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)



  • -lc++ 有添加


Log in to reply