library not found for -lPods-AFNetworking

前端 未结 7 2023
忘了有多久
忘了有多久 2021-01-01 16:15

I am getting the following error when using AFNetworking:

\'\'library not found for -lPods-AFNetworking\'\'
\"linker co

7条回答
  •  孤街浪徒
    2021-01-01 16:23

    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...

提交回复
热议问题