Cocoapods : Library Not found

戏子无情 提交于 2020-01-11 05:45:29

问题


I am trying to run a Cocoapods project and getting the following error

I tried to pod deintegrate and then pod install but it's still there. I also tried removing the pod.debug.xcconfig file from Project->Info->Configuration and then pod install but nothing.

pod.debug.xcconfig generated by pod install contain path like ${PODS_ROOT}/Headers/Public/AttributedMarkdown

but I can't find 'Headers/Public' in Project Navigator


回答1:


First line of defense: (Quit Xcode first, which is part of the strategy) :

rm -rf Pods/ Podfile.lock ; pod install

Defensive approach: verify your Podfile. Is it coherent? How about your tools versions? What happens if you create a new Podfile with pod init? Do you have all targets as expected?

Drastic measure: Rebuild xcworkspace entirely:

  1. quit Xcode
  2. mv project.xcworkspace to a backup location
  3. sudo gem install cocoapods (get latest)
  4. rm -rf Pods/ Podfile.lock ; pod install

Note:

Notice the use of rm -rf Pods/ Podfile.lock ; pod install instead of pod update.



来源:https://stackoverflow.com/questions/31405325/cocoapods-library-not-found

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