ld: library not found for -lPods not found in ios?

可紊 提交于 2019-12-13 08:10:17

问题


hello I have download code from bit bucket when we open xcode project it show error like this...

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

but after that I am using terminal then update or pod setup using these links

  http://www.raywenderlich.com/64546/introduction-to-cocoapods-2
and http://stackoverflow.com/questions/9863836/library-not-found-for-lpods

using these link we install pod and after that pods and .xcworkspace file generate In project folder when we open .xcworkspace file and build project then it will build successfully but when we open .xcodproj and build this it will show error

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

so I don't know how to add libpods.a library and run this app .


回答1:


When using Pods, the xcodeproj file is obsolete, you should use the xcodeworkspace from now. That's why you are getting the "not found" error for pods in the xcodeproj




回答2:


Try to open .xcworkspace file and in target -> Build Settings -> Library Search Path , write down below line , and run in simulator

"Pods/build/Debug-iphonesimulator"

Let me know it is working or not!!!

happy coding!!!



来源:https://stackoverflow.com/questions/24974010/ld-library-not-found-for-lpods-not-found-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!