ios集成react native报错怎么解决啊 试了好多方法没用

Undefinedsymbolsforarchitecturex86_64:"_JSNoBytecodeFileFormatVersion",referencedfrom:
+[RCTJavaScriptLoaderloadBundleAtURL:onProgress:onComplete:]inlibReact.a(RCTJavaScriptLoader.o)
+[RCTJavaScriptLoaderattemptSynchronousLoadOfBundleAtURL:runtimeBCVersion:sourceLength:error:]inlibReact.a(RCTJavaScriptLoader.o)
"facebook::react::IRemoteConnection::~IRemoteConnection()",referencedfrom:
RemoteConnection::~RemoteConnection()inlibReact.a(RCTInspector.o)
"facebook::react::systemJSCWrapper()",referencedfrom:
-[RCTSamplingProfilerPackagerMethodhandleRequest:withResponder:]inlibReact.a(RCTSamplingProfilerPackagerMethod.o)
-[RCTDevSettingsisJSCSamplingProfilerAvailable]inlibReact.a(RCTDevSettings.o)
-[RCTDevSettingstoggleJSCSamplingProfiler]inlibReact.a(RCTDevSettings.o)
"facebook::react::parseTypeFromHeader(facebook::react::BundleHeaderconst&)",referencedfrom:
+[RCTJavaScriptLoaderattemptSynchronousLoadOfBundleAtURL:runtimeBCVersion:sourceLength:error:]inlibReact.a(RCTJavaScriptLoader.o)
"facebook::react::customJSCWrapper()",referencedfrom:
____ZL11getInstancev_block_invokeinlibReact.a(RCTInspector.o)
-[RCTSamplingProfilerPackagerMethodhandleRequest:withResponder:]inlibReact.a(RCTSamplingProfilerPackagerMethod.o)
-[RCTDevSettingsisJSCSamplingProfilerAvailable]inlibReact.a(RCTDevSettings.o)
-[RCTDevSettingstoggleJSCSamplingProfiler]inlibReact.a(RCTDevSettings.o)
ld:symbol(s)notfoundforarchitecturex86_64clang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)
javascriptcore库也加了-lc++也加了
智慧大石
浏览 632回答 2
2回答

神不在的星期二

好长。。。RN是用CocoaPods集成的么?您看看项目引用的libReact.a是否是红色,Headerpath等是否配置正确
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript