React-native-firebase: Building for iOS issue: GTMSessionFetcher + GoogleToolboxForMac

Created on 12 Jun 2017  路  8Comments  路  Source: invertase/react-native-firebase

ld: warning: directory not found for option '-L/.../ios/build/Release-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/.../ios/build/Debug-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/.../ios/build/Debug-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-F/.../ios/build/Debug-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/.../ios/build/Debug-iphoneos/GTMSessionFetcher'
ld: library not found for -lGTMSessionFetcher
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Can't seem to build for iOS. Android is fine. I tried adding them Link Binary with Libraries, but still stuck.

package.json

"react": "16.0.0-alpha.6",
"react-native": "0.44.2",
"react-native-firebase": "^1.1.0",

Podfile

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

# RNFirebase
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Firebase/AppIndexing'
pod 'Firebase/Core'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
iOS Docs

Most helpful comment

Still pops up for rn 0.51

All 8 comments

I added pod 'RNFirebase', :path => '../node_modules/react-native-firebase' to my pod file.

i am still getting this issue

@Salakar Why this issue closed? I got this error still can't solve, Even it works from xworkspace, I can not archive my project. It gives error related to this issue.

@munkhorgil
i get same issue. But i resolved it by run: pod install to install missing lib.

@hungdev I resolved this by downloading Firebase SDK

Still pops up for rn 0.51

same issue. only affected when I try to run a Release build on simulator or phone. If I just build, or just run debug (with the Metro bundler server) everything is fine. tried on 0.51 and 0.52

I found a fix by adding those libraries under the Link Binary With Libraries section under Build Phases

Was this page helpful?
0 / 5 - 0 ratings