![](/img/trans.png)
[英]getInitialLink is not working but onLink is working in react-native-firebase v6
[英]React-native wont build after upgrading react-native-firebase from v5 to v6
在 Xcode 中,存檔期間出現以下錯誤
Showing All Messages
: Directory not found for option '-L/Users/<user>/Library/Developer/Xcode/DerivedData/Mobile-ffdrrqgiyphlinerkjxrqqqeocrs/Build/Intermediates.noindex/ArchiveIntermediates/Mobile/BuildProductsPath/Release-iphoneos/React'
ld: library not found for -lRNFirebase
clang: error: linker command failed with exit code 1 (use -v to see invocation)
當我嘗試存檔時出現此錯誤。
當我嘗試在終端中使用命令$ react-native run-ios
構建它時(使用$ react-native start
運行 Metro bundler),我得到:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening Mobile.xcworkspace
** BUILD FAILED **
The following build commands failed:
Ld build/Mobile/Build/Products/Debug-iphonesimulator/Mobile.app/UmappedMobile normal x86_64
(1 failure)
播客文件:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.3'
target 'Mobile' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
libPath = '..'
nodeModules = "#{libPath}/node_modules"
rn_path = "#{nodeModules}/react-native"
# Pods for Mobile
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app'
pod 'RNFBDatabase', :path => '../node_modules/@react-native-firebase/database'
pod 'RNFBAuth', :path => '../node_modules/@react-native-firebase/auth'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec"
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
end
package.json:
"dependencies": {
"@react-native-firebase/app": "^7.2.1",
"@react-native-firebase/auth": "^8.0.5",
"@react-native-firebase/database": "^7.2.2",
"react": "16.8.3",
"react-native": "0.59.10",
...
}
我嘗試清除 ios 中的 node_modules 和 Pods 文件夾。 一直在嘗試調試這個,任何幫助表示贊賞。 謝謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.