简体   繁体   中英

Why do I get "library not found for -lPods" in XCode

after a few weeks of developing an iOS app I wanted to deploy the App on my test device (used the simulator before). Since that I always get this error:

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

Now it doesn't even works in the simulator. I already tried to reinstall all pods and searched the billions of threads. But I don't get it to work. This is my Podfile:

    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '9.1'
    target 'be2gether'
    pod 'GoogleMaps'
    use_frameworks!
    pod 'Alamofire', '~>3.0'
    pod 'SwiftyJSON', '~> 2.3'
    pod 'IQKeyboardManagerSwift'
    project '../be2gether.xcodeproj'

I open the project by using the .xcworkspace file. Already tried to clean the project or alt + clean the project and deleted the derived data in Xcode. I would post the build options but I don't know which are important for the problem. How can i get the project back working? Thank you for your help :)

I had the same issue. It turned out that inside of "Linked Frameworks and Libraries" libPods -XXX.a was many times. I deleted the ones that didn't belong to my target and it worked. Below an image that my help you to understand how I solve it. BTW I have cocoaPod 1.0.1 and xCode 8 beta 5. Project->Target->Basic->Linked Frameworks and Libraries

Hey I had the same problem. Try to create a blank project and see if it compiles. In my case the workspace was broken. This fixed it. Hope it helps!

转到终端并再次安装您的 Pod 或更新它

从您的项目中删除 pod 引用并重新安装!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM