导入 Kingfisher 库时出现问题 - Swift 3 Xcode 8.1
Issue importing Kingfisher librabry - Swift 3 Xcode 8.1
我最近决定将 Kingfisher 导入我的项目,然后 the installation guide 使用 CocoaPods。一切顺利,直到我 运行 项目并说
No such Module 'Kingfisher'
我还将 Firebase 添加到我的库中,没有出现任何让我感到困惑的错误。
这是播客文件
target 'Ego1' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 3.0'
target 'Ego1Tests' do
inherit! :search_paths
end
target 'Ego1UITests' do
inherit! :search_paths
end
end
这是我在我的视图控制器中导入的内容
import UIKit
import Firebase
import FirebaseStorage
import Kingfisher //error
在此先感谢您的帮助!
尝试将 Podfile 更改为:-
target 'Ego1' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 3.0'
end
然后:-
- 清理你的项目(CMD+OPTION+SHIFT+K)
- 删除派生数据。
- 重建
我最近决定将 Kingfisher 导入我的项目,然后 the installation guide 使用 CocoaPods。一切顺利,直到我 运行 项目并说
No such Module 'Kingfisher'
我还将 Firebase 添加到我的库中,没有出现任何让我感到困惑的错误。
这是播客文件
target 'Ego1' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 3.0'
target 'Ego1Tests' do
inherit! :search_paths
end
target 'Ego1UITests' do
inherit! :search_paths
end
end
这是我在我的视图控制器中导入的内容
import UIKit
import Firebase
import FirebaseStorage
import Kingfisher //error
在此先感谢您的帮助!
尝试将 Podfile 更改为:-
target 'Ego1' do
use_frameworks!
pod 'Firebase'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Kingfisher', '~> 3.0'
end
然后:-
- 清理你的项目(CMD+OPTION+SHIFT+K)
- 删除派生数据。
- 重建