警告:nw_socket_handle_socket_event套接字SO_ERROR反应本机

时间:2019-01-22 19:07:38

标签: reactjs react-native

我的问题是xcode模拟器的devtools无法用cmd + d simple打开,只是它不起作用,这不是已经尝试过的模拟器键盘的功能。我知道它必须与此错误相关,因为在日志中(我的意思是在xcode日志中),我看到此日志:

Class RCTDevMenu was not exported. Did you forget to use RCT_EXPORT_MODULE()?

我还有一些与此类似的日志:

Class RCTWebSocketExecutor is implemented in both /Users/francocoronel/Library/Developer/CoreSimulator/Devices/25E4150E-D872-4394-869A-BA688A345490/data/Containers/Bundle/Application/B0D486A2-902C-4665-B309-FCA4F9E5F855/mdp365react.app/Frameworks/React.framework/React (0x10a25f958) and /Users/francocoronel/Library/Developer/CoreSimulator/Devices/25E4150E-D872-4394-869A-BA688A345490/data/Containers/Bundle/Application/B0D486A2-902C-4665-B309-FCA4F9E5F855/mdp365react.app/mdp365react

我认为我的问题可能与我在Pod和节点模块中的两个位置安装了react的问题有关,这是我的podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'mdp365react' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for mdp365react
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'


  pod 'React', :path => '../node_modules/react-native', :subspecs => [
      'Core',
      'CxxBridge', # Include this for RN >= 0.47
      'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
      'RCTText',    
      'RCTNetwork',
]


react_native = "../node_modules/react-native"
pod 'Folly', :podspec => "#{react_native}/third-party-podspecs/Folly.podspec"

  pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'

  pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'

end

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

pod 'DCTAuth', :git => 'https://github.com/danielctull/DCTAuth.git'
pod 'Firebase/Core', '~> 5.9.0'
pod 'GoogleAppMeasurement', '~> 5.2.0'
pod 'Firebase/Auth', '~> 5.9.0'
pod 'Firebase/Messaging', '~> 5.9.0'
pod 'Firebase/Analytics', '5.9.0'

0 个答案:

没有答案