我刚刚将react-native(0.57.3)和react-native-firebase(5.1.0-rc1)升级到最新版本,并且在构建时收到这些错误:
/卷/EamonWD/snag/react-native-firebase-starter/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.m:26:45:没有用于选择器'functionsForApp:region的已知类方法:'
以上错误发生在两个地方,我也收到:
/Volumes/EamonWD/snag/react-native-firebase-starter/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.m:69:16:“ FIRFunctions”没有可见的@interface声明了选择器 'useFunctionsEmulatorOrigin:'
我正在使用Cocoapods
,我猜也许某些内容没有完全更新?或链接?
这是我的Podfile
:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'snagit' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for snagit
# Required by RNFirebase
pod 'Firebase/Core', '~> 5.3.0'
# [OPTIONAL PODS] - comment out pods for firebase products you won't be using.
pod 'Firebase/AdMob', '~> 5.3.0'
pod 'Firebase/Auth', '~> 5.3.0'
pod 'Firebase/Crash', '~> 5.3.0'
pod 'Firebase/Database', '~> 5.3.0'
pod 'Firebase/Functions', '~> 5.3.0'
pod 'Firebase/DynamicLinks', '~> 5.3.0'
pod 'Firebase/Firestore', '~> 5.3.0'
# pod 'Firebase/Invites', '~> 5.3.0'
pod 'Firebase/Messaging', '~> 5.3.0'
pod 'Firebase/RemoteConfig', '~> 5.3.0'
pod 'Firebase/Storage', '~> 5.3.0'
pod 'Firebase/Performance', '~> 5.3.0'
pod 'Fabric', '~> 1.7.5'
pod 'Crashlytics', '~> 3.10.4'
pod 'FacebookSDK'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'react-native-camera', :path => '../node_modules/react-native-camera'
# Fixes required for pod specs to work with rn 0.42
react_native_path = "../node_modules/react-native"
pod "yoga", :path => "#{react_native_path}/ReactCommon/yoga"
pod "React", :path => react_native_path, :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'DevSupport'
]
pod 'RNGoogleSignin', :path => '../node_modules/react-native-google-signin'
pod 'RNFS', :path => '../node_modules/react-native-fs'
end
版本正确吗? (5.3.0)。谢谢您的帮助。