Cocoapods:找不到图书馆 [英] Cocoapods : Library Not found

查看:170
本文介绍了Cocoapods:找不到图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行Cocoapods项目并收到以下错误

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

我试图 pod deintegrate 然后 pod install 但它仍然存在。
我还尝试从项目 - >信息 - >配置 pod.debug.xcconfig 文件>然后 pod install 但没有。

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 pod install 生成包含路径,如 $ {PODS_ROOT} / Headers / Public / AttributedMarkdown

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

但我在Project Navigator中找不到'标题/公共'

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

推荐答案

第一道防线 :(首先退出Xcode,这是策略的一部分):

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

rm -rf Pods/ Podfile.lock ; pod install

防御方法:验证您的Podfile。它是连贯的吗?你的工具版本怎么样?如果使用 pod init 创建新的Podfile会发生什么?您是否按预期拥有所有目标?

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?

严格措施
完全重建 xcworkspace


  1. 退出Xcode

  2. mv project.xcworkspace到备份位置

  3. sudo gem install cocoapods (最新)

  4. rm -rf Pods / Podfile.lock; pod安装

  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






注意:

注意使用 rm -rf Pods / Podfile.lock; pod install 而不是 pod update

这篇关于Cocoapods:找不到图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆