objective-c linker error with OAuth2 library - ios

I'm getting this error when I try to build my project in Xcode:
ld: library not found for -lGTMOAuth2 clang:
error: linker command
failed with exit code 1 (use -v to see invocation)
And we're using pods, so I opened the workspace, not the project.
I just got Xcode version 8.3.3, so not sure if this is causing any errors...

Turns out OAuth2 was not included in the Pod File, and I didn't check because I thought it was there before I pulled the latest version of the app. Thanks John Tracid.

Related

iOS library not found for -lfsdk

I'm trying to get an older ~2014 era app running on my M1 Mac. I'm able to update cocoa pods and all that, but I keep getting the following error (with or without rosetta)
ld: library not found for -lfsdk
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can't find any documentation about this one. Any clue what -lfsdk is?
Thank you!

Build failing, Parse-Server/Pod/Bolts

I'm using Parse-Server/Heroku and just installed the pod for Parse in an iOS project of mine (written in objective C).
I am using Xcode Version 9.2 and pod version 1.3.1.
The macOS is High Sierra Version 10.13.2.
When I try to build the project, I get this error:
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But Bolts seems to be installed, as a dependency when I run pod install.
Any idea about what I can do to solve the problem?
I presume the information I am giving here may not be enough. If more is needed to solve the issue please let me know what I should provide.
If you're using cocoapods, make sure you're opening the generated workspace and not the project itself.

Installing google analytics without pods, getting error ld: library not found for -lGoogleAnalyticsServices

I'm currently not using pods at all for my project, instead i'm using carthage but unfortunately they don't have carthage support so I followed this tutorial here http://www.danishin.com/article/Google_Analytics_For_iOS_Without_Cocoapods but after I tried building the project i got ld: library not found for -lGoogleAnalyticsServices from Apple Mach-O Linker (ld) Error .. Linker command failed with exit code 1 (use -v to see invocation) I've already looked around other questions/answers on here but didn't have any luck at all.
I've tried these things below
Disabled bitcode
Made sure library search paths had the correct path to libGoogleAnalyticsServices
Deleted DerivedData, Cleaned, Closed XCode, Rebuild

"Linker command failed with exit code 1" message when building project after adding RMQClient framework to XCODe 7.3 Project

I am trying to add RMQClient framework to my XCODE 7.3 project.
I am following the steps as specified in https://github.com/rabbitmq/rabbitmq-objc-client as well as in the RabbitMQ official site.
After adding the framework and running Tools->Build I am receiving
ld: framework not found RMQClient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error messages and can't import any of the header files from the framework.
Any suggestions for this issue?
Copying the framework package to the Project tree on Xcode solved the problem.
remember to make sure the framework is also linked and files are copied in the Build Phases section

clang: error: linker command failed with exit code 1 (use -v to see invocation) when setting up cocoapods environment

I am setting the cocoapods dependency management tool for iOS project, when building my project i got this error:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using Xcode 4.5 and Mac OS X Lion 10.7.4. Thanx in advance.
Can't comment yet, so posting as an answer.
It would help to have a bit more information on what you did to setup cocoapods, library settings in XCode and whether this is your first time using cocoapods or if the issue suddenly started. Try to give us a good idea of the details of your current situation.
For the time being, a little googling popped up this URL: https://github.com/CocoaPods/CocoaPods/issues/155
You might find it helpful, specifically the post near the bottom:
In my environment the issue was that the Pods project did not have a
target called ADHOC (as per the main project). I duplicated the Pods
release target, called it ADHOC, changed the OS Deployment Target to
my requirement (5.0) and then everything worked.

Resources