过去两周我一直在与此作斗争,没有任何进展。
这是我的Podfile:
target 'AdPagesGo' do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AdPagesGo
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'DevSupport',
'RCTText',
'RCTNetwork',
'BatchedBridge'
]
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
# Required by RNFirebase
pod 'Firebase/Core'
pod 'RNFirebase', :path => '../node_modules/react-native-firebase'
# [OPTIONAL PODS] - comment out pods for firebase products you won't be using.
pod 'Firebase/Crash'
end
使用此^安装程序即时崩溃:
exception 'RCTFatalException: Unhandled JS Exception: Native module cannot be null.', reason: 'Unhandled JS Exception: Native module cannot be null., stack:
t@81:265
<unknown>@280:147
n@2:553
<unknown>@368:423
n@2:553
如果我将libRTCWebsocket.a
/ libRTCText.a
/ libRTCNetwork.a
添加到关联的框架和库,我可以在debug
/ release
模式下运行它。但是,每当我尝试归档它(用于进行testflight)时,我都会得到重复的构建时错误(websocket / network / text)。
这根本没有任何意义。
谢谢!
编辑:这个问题是完全随机的..现在我正在
Geolocation/RCTLocationObserver.h:10:9: fatal error: 'React/RCTEventEmitter.h' file not found
#import <React/RCTEventEmitter.h>
^
1 error generated.