question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

library not found for -lGoogleToolboxForMac

See original GitHub issue
  1. What version of RN and react-native-fcm are you running? react-native: 0.54.0 react-native-fcm: ^14.1.3
  2. What device are you using? (e.g iOS9 emulator, Android 6 device)? not applicable
  3. Is your app running in foreground, background or not running? not applicable

I’m getting error on build saying that library not found, this have done just after I use pod install

My PodFile

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

#pod 'Firebase/Core'
pod 'Firebase/Messaging'
#pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'

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

  # Pods for TabelionatoAmorim

  target 'TabelionatoAmorim-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TabelionatoAmorimTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

I’ve tried to uncomment the following lines and remove and installing again running pod install

#pod 'Firebase/Core'
#pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'

Update I

I also tried to specify a platform in Podfile (platform :ios, '9.0'), and for each update on Podfile I’m running this command above instead of pod update

rm -rf Pods/ Podfile.lock && nano Podfile && pod install

Here following logs about the error on xcode

ld: warning: directory not found for option '-L/Users/webdev/Library/Developer/Xcode/DerivedData/TabelionatoAmorim-bvvrnpjdeuqofiautzexjiililoz/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/webdev/Library/Developer/Xcode/DerivedData/TabelionatoAmorim-bvvrnpjdeuqofiautzexjiililoz/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-L/Users/webdev/Library/Developer/Xcode/DerivedData/TabelionatoAmorim-bvvrnpjdeuqofiautzexjiililoz/Build/Products/Debug-iphonesimulator/nanopb'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
evollucommented, Apr 4, 2018

tried the repo and build without issue. I did

  1. pod repo update
  2. pod install my project file changed but I can’t open a PR against your branch. no permission
2reactions
monkariarticommented, Mar 22, 2018

Hi! I have the same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

ld: library not found for -lGoogleToolboxForMac - Stack Overflow
I change my pod file to following code and re-install pod. It installed all necessary files for GoogleToolboxForMac.
Read more >
ld: library not found for -lGoogleToolboxForMac #137 - GitHub
Hi, I have included file libGoogleToolboxForMac.a file in library but its showing red, and project giving me the error "ld: library not ......
Read more >
Firebase Analytics fails ios build only: ld: library not found for
js process with a non-zero exit code. When I open up XCode XCode Errors. ld: library not found for -lGoogleToolboxForMac. clang: error: linker ......
Read more >
iOS : Xcode error: library not found for -lGoogleToolboxForMac
iOS : Xcode error: library not found for -lGoogleToolboxForMac [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
Objective-c – ld: library not found for -lGoogleToolboxForMac
Objective-c – ld: library not found for -lGoogleToolboxForMac. firebase-cloud-messaginggoogle-toolbox-for-macobjective-cxcode8.1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found