【问题标题】:Pod Install: Unable to find source ref for targetPod 安装:找不到目标的源引用
【发布时间】:2020-09-24 06:27:05
【问题描述】:

在 macOS 终端中,每当我尝试为任何 Xcode 项目运行 pod install 时,我都会不断收到 [!] Unable to find source ref ... 错误消息。我已经安装了 CocoaPods。

完整的错误信息示例:

  1. [!] 无法为目标 CLTypingLabel 找到 CLTypingLabel.swift 的源引用。

  2. [!] 无法找到目标 SVIndefiniteAnimatedView.m 的源引用 SVProgressHUD

  3. [!] 无法为目标 SDWebImage 找到 NSButton+WebCache.m 的源引用。

podfile:

platform :ios, '13.0'

target 'Myapp iOS13' do
     use_frameworks!

  pod 'CLTypingLabel'

end

【问题讨论】:

  • 只是跟进我的帖子,因为我在为项目安装 pod 时遇到了异常问题,无法继续学习。我已经尝试了无数次从我的 mac 重新安装和删除 cocoapods。

标签: swift xcode cocoapods


【解决方案1】:

我想出了如何让 CocoaPods 工作!即使该帐户具有完整的管理员权限,在辅助 macbook 帐户上安装 pod 似乎也可能存在问题。我登录到在 macbook 上创建的主要或初始帐户,安装了 CocoaPods,pod install 能够安装依赖项。我还需要在主帐户上处理我的项目。

【讨论】:

    猜你喜欢
    • 2016-12-30
    • 2014-12-22
    • 1970-01-01
    • 2019-03-22
    • 1970-01-01
    • 1970-01-01
    • 2013-01-22
    • 2015-01-08
    • 1970-01-01
    相关资源
    最近更新 更多