iOS AFNetworking iPods error - ios

I want to implement AFNetworking in my application while implementation i got error like this how to resolve this error?
ld: library not found for -lPods-Transity-AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I was able to solve the same problem with the following code.
Add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths.
$(PROJECT_DIR)
May be it will help you.

Related

clang: error: linker command failed with exit code 1 (use -v to see invocation) Bitcode Fix NOT Working

I'm trying to move an Xcode app from a MBP to an iMac. I've copied all the folders and files needed but keep getting to following error on build:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After Googling around a bit the most common fix for this is to set Bitcode to no. I've done this but it doesn't make a difference. I've also tried quitting Xcode emptying the DerivedData folder and restarting.
Below is the error in Full:
Here is a list of my linked libraries:
It sounds a lot like the error is true - have you definitely got your libWikitude framework in a referenced path?
Go to XCode, Build Settings, find 'Framework Search Paths' under Search Paths, and make sure the folder of your libWikitude is correct.
Perhaps it's hardcoded and now the path has changed?
After a few headaches with this I decided to simply remove all references to the Wikitude lib as it was not being used by the app.
This immediately solved the issue. Thanks for those who answered.

XCode: Changed Other Linker Flag and now have clang error

I was having an issue with Google Maps and someone suggested changing -Objc in our build settings to -ObjC. When I do that I get a build error:
linker command failed with exit code 1 (use -v to see invocation)
I am coming into an existing app on this so there is no Test target, it was already removed. That seems to be a popular solution to this issue. If I revert it back to -Objc the app builds but I am getting #selector errors with the Google map instantiation.
And if someone could explain what (use -v to see invocation) means I'd really appreciate it.
It's saying that you're trying to link both a BugSense framework and a library from a Crittercism SDK and that they're colliding with each other because both contain a copy of the same .o file.
The reason you're seeing the problem is because -ObjC tells the linker to load all symbols (even if you have duplicates). To the best of my knowledge, -Objc has no meaning.

Library not found -lAdIdAccess ios

Today when i have started compiling the code i am getting the folloing error
I have tried the other option like, setting the liker flag, framework search path,
ld: library not found for -lAdIdAccess
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was able to solve the same problem with the following code.
Add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths.
$(PROJECT_DIR)
May be it will help you.
-lAdIdAccess is a part of Google Analytics SDK.
Don't forget to add a path to the SDK in Build Settings -> Framework Search Paths. Select "recursive" if the SDK is in a subfolder.

Library not fount -lPods

I got follwing errro in my application.
ld: warning: directory not found for option '-L/Users/idev/Desktop/Swami/Project/Sources/Xcode/chronicle/chronicle/Vendor/openssl-1.0.1e/lib'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me...
You need to open ".xcworkspace" instead of ".xcodeproj". the .xcworkspace is generated when you install pod on the project.
Xcode is not able to find the library, and hence the library error. Click on the project target, go to build settings, under search paths -> frameworks search paths, delete paths. You may have moved your desktop folder along with the library.
It seems project has been using http://cocoapods.org/. and that files are missing from your project.
You cant just download it from git. You need to install it from cocoapods.
you may follow Introduction to http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 Tutorial

linker command failed with exit code 1 (user -v to see invocation)

I got an error:
Framework not found FacebookSDK
clang: error: linker command failed with exit code 1 (user -v to see invocation)
When I copy my project to another macbook to run,I found this error.I used the facebooksdk framework.If I deleted the facebook framework in my project and then add the facebook framework again to my project can solved this error.But I don't want to solve this problem like that.Any other better idea.
Thanks in advanced.
You should check Framework Search Path in target Build Settings, best way is write framework directory path with macro like $(SOURCE_ROOT) is allow linker find framework on different macs.
For example:
if my project live in this folder
/Users/sage/Documents/devs/project1/
$(SOURCE_ROOT) will be /Users/sage/Documents/devs/project1
in Framework Searh Path I should write $(SOURCE_ROOT)/libs

Resources