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.
Related
I want to add Appsflyer framework in my project. Added by two ways
Downloaded the framework and imported it to project. Added in Linked Frameworks and Libraries. When i Compile it shows the error of "ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with Cocoa pods. Created podfile and installed Appsflyer framework.
Here also i get the same error."ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with all options from stackoverflow. By using Header search paths, Library search paths and framework search paths.Enabling Bitcode, Build Active Architecture only etc. Even though i get the same result.
Iam using Xcode 6.3 and tried with xcode 7.3 also.
Suggest me how to resolve the problem? Thanks in advance.
I have just installed the Facebook using pods and now my project is not working and says. Please help someone.
Apple Mach-O Linker Error
ld: 87 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
duplicate symbols for architecture means your files are doubled, Please check if you have added facebook framework manually before using pods
you can also check files duplicating by seeing whole description of error
Solution 1
You need to do this:
Click on your project (targets) Click on Build Settings Under Library Search Paths, delete the paths May be this will help you.
Solution 2
You have duplicate symbol method which means there are duplicate file in project
In your Target's Build Phase, under "Compile Sources" check if there are duplicate file and delete one if you have duplication.
Hope this will help you.
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.
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
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