I am getting the following error when using AFNetworking:
\'\'library not found for -lPods-AFNetworking\'\'
\"linker co
In iWatch App using Cocoa Pods AFNetworking i got the Same issue.
I Just Solved Issue ....
Just Follow this Step.
[1] Open your project's podfile by typing in terminal:
open -a Xcode Podfile
Check If you are Using AFNetworking than using
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'AFNetworking', '~> 3.0'
copy and paste this between target 'iChat' do .... end
Like .....
target 'iChat' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for iChat
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'AFNetworking', '~> 3.0'
end
and
[2] Then open your terminal again simply paste it.
pod install
Now open App.xcworkspace and Clear and Run You can see Error is Gone Now...
Instead of opening the XCode project, you should open up the WorkSpace file.
It has been a while since this question but today I ran into a similar issue and how we solved it was by going to: Edit Scheme > Build
and making sure the option ´Find Implicit Dependencies´ is checked.
I had it unchecked and after I updated CocoaPods to 1.0, I couldn´t find the dependencies in the Derived Data folder.
After that I could build it succesfully.
React native:
I forgot to install a new RN module after pulling changes. So don't forget to npm i
or yarn
before building with react-native
.
I was facing the same problem and following solution worked for me:
I wanted to write an answer myself because two things together worked :
AS @Helium3 mentioned, I had to open the workspace rather than the project file in the file explorer(projectname.xcworkspace file)(I actually have 2 and only 1 seems to work!)
As @Muhammad Adnan mentioned in the comments, what worked was to install pod and update pod it solved the linker problems!!(Note: This should be done in the project directory,make sure cocoapods are installed first!!), in addition it gave me odd errors at first(after a second go),later it was alright!
Thank you guys!