ios - Pod 安装不下载框架

标签 ios swift frameworks cocoapods

我正在使用 switf 和 pod。当我在我的终端上输入“pod install”时,我没有将框架下载到我的项目中,而是得到了文件。

这对我来说没有任何区别,除了当我想在我的项目中导入它们时,我总是收到一个错误,说找不到它们。 这是我的 pod 文件

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'Project' do

    pod 'MSSTabbedPageViewController'
    pod 'PageMenu'

end

enter image description here

最佳答案

如 ocarol 所述,导入框架。但是,在您要使用框架的文件顶部导入之前,构建项目,因为 Xcode 似乎不会自动将 pod 链接到项目。

同时打开 pod install 生成的 .xcworkspace 文件。

关于ios - Pod 安装不下载框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38898892/

相关文章:

ios - 使用 glReadPixel() 和多重采样读取数据

android - Discord bot 在 ios 与 android 和桌面上的功能不同

ios - 如何检测 AVAudioRecorder 是否暂停?

rest - YQL 的替代品

ios - 通过动画调整 UIView 大小时约束不起作用

ios - 当在顶部添加新帖子时,UICollectionView 单元格自定义 FlowLayout 中断

ios - Firebase 存储警告 : downloadURL( )' is deprecated: Use ` StorageReference. downloadURLWithCompletion()

ios - 在 Swift 中解决异步关闭问题不起作用?

c# - 在公共(public) API 中传达字符串参数用途的最佳方式是什么?

mvvm - 天数计算方法(使用 ZK 和 MVVM)