In Xcode, I get the following error during archiving
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 -lRNFirebaseclang: error: linker command failed with exit code 1 (use -v to see invocation)
I get this error when I try to archive it.
When I try to build it using the command $ react-native run-ios
in the terminal (with $ react-native start
to run metro bundler), I get:
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)
Podfile:
# Uncomment the next line to define a global platform for your projectplatform :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 endend
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", ... }
I've tried clearing my node_modules and Pods folder within ios. Been trying to debug this for a while, any help is appreciated. Thanks!