0

I have used CocoaPod in my project.

When i run pod install command and after that running my project i am getting an error as -

ld: library not found for -lPods-ProjectName-AFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can anyone help me to solve this issue.

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75
Savita Pal
  • 63
  • 11

2 Answers2

0

Remove AFNetworking in podfile

Use this

target :App do

pod 'AFNetworking', '3.1.0'.

end

target :AppTests do … end

Via terminal again Pod install

You can change AFNetworking version. Open Workspace of your Project not Xcode

Lalit kumar
  • 1,797
  • 1
  • 8
  • 14
0

I had the same problem. I added pod for an existing workspace.

This what worked for me: Go to YourProject -> Manage schemes -> tick on Pods

Natalie
  • 11
  • 2