library not found for -lPods-AFNetworking

前端 未结 7 2055
忘了有多久
忘了有多久 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:39

    I wanted to write an answer myself because two things together worked :

    1. 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!)

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

提交回复
热议问题