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:
- Xcode > Product > Scheme > Manage Schemes
- Select to 'Show' the scheme that was failing (GoogleToolboxForMac)
- Select this scheme in the dropdown, just to the right of the 'Stop' button
- Build this scheme
- 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.
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"
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
How to Edit Empty Spaces of Left, Right Uibarbuttonitem in Uinavigationbar [iOS 7]
How to Use Iboutletcollection to Connect Multiple Uiimageviews to the Same Outlet
iOS App Error - Can't Add Self as Subview
Programmatically Change Rootviewcontroller of Storyboard
Apns (Apple Push Notification Service) Reliability
Nsxmlparser on iOS, How to Use It Given a Xml File
Creating a Shadow for a Uiimageview That Has Rounded Corners
How to Change Device Volume on iOS - Not Music Volume
Unable to Get the Access Token Through [Fbsdkaccesstoken Currentaccesstoken] in iPhone Sdk
Present Modal View Controller in Half Size Parent Controller
Xcode Nsmanagedobject Subclass Contains Optionals When They Are Marked as Non-Optional
Get Size of a View in React Native
Uidatepicker Select Month and Year
How to Overload an Assignment Operator in Swift
How to Fix "No Valid 'Aps-Environment' Entitlement String Found for Application" in Xcode 4.3
Scroll Uitextfield Above Keyboard in a Uitableviewcell on a Regular Uiviewcontroller