Ld: library not found for -lGoogleToolboxForMac

I am implementing firebase configuration through containers.

My Pods file is as follows.

# Uncomment the next line to define a global platform for your project platform :ios, '8.0' # $(PROJECT_DIR)/build/Debug-iphoneos/GoogleToolboxForMac lib search path target 'ProductName' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! # Pods for mCura pod 'Firebase/Core' pod 'Firebase/Messaging' end 

Everything is fine with the iPad simulator. it starts, but when I launch my application in iDevice. It shows that the library was not found.

 ld: library not found for -lGoogleToolboxForMac clang: error: linker command failed with exit code 1 (use -v to see invocation) 

I already spent 2 days removing this error and tried everything I could find on the network. And the GoogleToolboxForMac library GoogleToolboxForMac automatically installed when the firebase pod is installed.

+6
source share
2 answers

I change the pod file to the following code and reinstall pod. He installed all the necessary files for GoogleToolboxForMac.

 # Uncomment the next line to define a global platform for your project platform :ios, '9.0' target 'ProductName' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'GoogleToolboxForMac', '~> 2.1' end 

After installing pod

1) Change the circuit to a universal iOS device and build.

2) After the build is successful, you can see the libGoogleToolboxForMac.a file in black instead of red.

3) Now select β€œDevice” and run the build on iDevice. Follow the screenshots.

enter image description here

Or you can create the libGoogleToolboxForMac.a library

+13
source

I get this exception too:

enter image description here

Fixed after opening the / platform / ios folder in Xcode instead of the / platform / ios / MyApp.xcodeproj file.

+2
source

Source: https://habr.com/ru/post/1012703/


All Articles