XCode - Linker failed - xcode

I have been given an xcode project and I am trying to compile and getting the following error:
ld: library not found for -lAFNetworking
I have looked inside \Pods and there is a folder there called AFNetworking
I can't see what the issue is, or how to fix this. Can anyone guide me to how to fix this issue?

Related

What is the solution to the following error while building in XCode 12

I am building a project on XCode 12 and facing the below mentioned error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lboost_system
I tried searching for the root cause or even any workaround, but couldn't find any. Can someone please help me out in this?

ld: framework not found KudanAR

I have getting iOS SDK(1.3.1) for KudanAR.
I tried to builded the KudanARsample in Xcode.
However, you will see an error such as the following.
ld: framework not found KudanAR
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am installed already 'KudanAR.framework'.
I wonder if the packages is missing?
Download from:
https://github.com/kudan-eu/Simple-Samples-iOS
Development environment:
Xcode 8.0,iOS 10,OS X
Please answer....
As the README instructions say:
In order for this sample project to work, you will need to download the KudanAR framework from the Kudan website. Then simply drop the framework into the root project directory and run the Xcode project.
You can get it from the Kudan website

Linker command failed with exit code 1 (use -v to see invocation) with Swift 3

I am working on building a Swift library and am hosting it on GitHub.
All was going fine until I added BluetoothKit to the project. I then got an Apple Mach-O Linker Error:
ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk/Developer/Library/Frameworks'
ld: /Users/calebklevetertest/Library/Developer/Xcode/DerivedData/Napalm-dblvhbjdwovurocsvzrzaxzkjjyw/Build/Products/Debug-iphonesimulator/Napalm.framework/Napalm compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
From reading the error it appears the issue somehow stems from the fact I am using Swift 3, but I can't figure out how to fix it.
I did convert BluetoothKit to Swift 3 when I added it.
There is one class that uses BluetoothKit and it is called NPFBluetooth.
A couple things to note are 1) Even though the class is public, the compiler gives an error of 'unresolved identifier', 2) The class does not show in the auto-complete and 3) All the other classes work fine.
I ran into the error migrating to swift3. As it turns out Xcode keeps copies of built frameworks and moving to swift3 is apparently not a cue to rebuild those (even after finding out it was built using swift2.... no let's throw a vague error instead...)
The solution is to delete the content of your 'derived data' folder.
Works for frameworks installed with Carthage and cocoapods.....
Go to your build settings and switch the target's settings to ENABLE_BITCODE = YES for now.
It's working for me ;)

Can't archive on Xcode: CocoaPods linking error

On an iOS project, when I compile my project to run it, it works fine.
But if I archive it, it fails with the following error:
ld: file not found: /Users/xxxxx/Work/xxxxx/codes/xxxxx/DerivedData/xxxxx/Build/Intermediates/ArchiveIntermediates/xxxxx/InstallationBuildProductsLocation/Applications/libPods.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using Xcode 4.6 and iOS 5.0.
I searched for a long time and finally got something and solved the same problem for me. For anyone who still needs:
In Build Setting > Other Linker Flag:
Probably the flag is different for Debug and others.
Try to change wherever $(TARGET_BUILD_DIR) to $(BUILT_PRODUCTS_DIR).
For me, I changed $(TARGET_BUILD_DIR)/libPods.a to $(BUILT_PRODUCTS_DIR)/libPods.a, and problem solved.

Adding new dropbox.framework to xcode giving error

I have tried to add dropbox framework to my xcode 4.5 but I'm getting an error as follows
ld: 14 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So I googled for it and found ,xcode 4.5 no longer supports drop box framework. So I tried to add new 1.3 version of dropbox framework but still it gives the same error.Please help me out. How to overcome this problem
First try to clean the project first and try to run it again. If not, have you looked at this: http://www.mathiastauber.com/integration-o-dropbox-in-your-ios-application/

Resources