Framework Not Found Googletoolboxformac

Framework not found GoogleToolboxForMac

I had the same error. Once you install the pods, you'll see the following message.

[!] Please close any current Xcode sessions and use MyApp.xcworkspace
for this project from now on.

I didn't notice this for the first time and was trying to build the project using the regular xcodeproj file. After I saw this message, I opened the right project and it worked fine.

Once you open this project you'll notice that you have two subprojects. One would be your project, and another would be the Pods project.

Xcode error: library not found for -lGoogleToolboxForMac

Finally worked out a fix:

  1. Xcode > Product > Scheme > Manage Schemes
  2. Select to 'Show' the scheme that was failing (GoogleToolboxForMac)
  3. Select this scheme in the dropdown, just to the right of the 'Stop' button
  4. Build this scheme
  5. Then select the original scheme (in the dropdown mentioned in step 3) and rebuild

All built correctly.

So it looked like I had to build the separate scheme manually.

Note: To build these automatically, use Product > Scheme > 'Edit Scheme' > Build > And make sure all targets are added with your project target at the bottom.

ld: library not found for -lGoogleToolboxForMac

I change my pod file to following code and re-install pod. It installed all 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 Scheme to Generic iOS Device and Build.

2) After build success you can see libGoogleToolboxForMac.a file in black colour instead of red.

3) Now select Device and run build on iDevice. Follow screenshot.

Sample Image

Or you can have build library libGoogleToolboxForMac.a

ld: framework not found Pods

In Project Navigator in the folder Pods I had a Pods.framework in there which was red. It was also present in Linked Frameworks and Libraries. I removed both references and the error disappeared.

TL;DR

Remove Pods.framework in:

  • Folder named Pods
  • Linked Frameworks and Libraries

ld: framework not found FirebaseNanoPB

Remove below rows in Linker to fix this issue

-framework
"FirebaseNanoPB"

Sample Image

Conflict between GoogleToolboxForMac & GoogleOpenSource.framework as both contains GTMLogger file

I disintegrated Google plus framework and integrated google sign-in with firebase itself. In this way i am able to resolve my problem.



Related Topics



Leave a reply



Submit