ios - 从子模块引用 pod 时“没有这样的模块”

标签 ios swift cocoapods git-submodules carthage

我在我的 swift 项目中集成了子模块,该子模块之前使用的是 Carthage。现在我从 Carthage 搬到了 Cocoapods。但是现在每当我引用主项目或子模块中提到的任何 pod 时,它都会抛出以下错误。

No such module 'POD_NAME'

早些时候子模块显示了相同的错误,但我在我的框架搜索路径中添加了 $(SRCROOT) 并且该错误被上面的错误所取代。

最佳答案

如果您使用的是 cocoapods,那么在安装 pod 后构建项目一次,然后尝试导入模块。

关于ios - 从子模块引用 pod 时“没有这样的模块”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42621318/

相关文章:

ios - Cocos 2d v2.1制作的游戏如何提交到Apple App Store

swift - 使用break进入闭包[Swift]

ios - 来自 pod 的命名颜色仅使用浅色外观而不是深色

ios - tableView.reloadData 清除数组 - 索引超出范围

SwiftUI:无法推断引用成员的上下文基础

ios - awsmobilehub 和 cocoapods 集成

ios - iOS GCM 示例的无效 Podfile

ios - 如何在实例化之前检查 Storyboard中 Controller 的存在?

ios - twilio API : how can I play an audio file to both sides of a voice call and not disconnect the call?

ios - 数据库获取只存在于它自己的函数中