我podspec
为我的项目创建了一个文件,该文件本身具有podfile
.
Podfile 看起来像这样:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'FLAnimatedImage', '~> 1.0'
Podspec 文件也是标准设置:
Pod::Spec.new do |s|
s.name = "ConversationVC"
s.version = "1.0.1"
s.summary = "ConversationViewController, for messaging"
s.homepage = "[HOMEPAGE URL]"
s.author = { "Andrew Hart" => "[EMAIL ADDRESS]" }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :git => "[GIT URL]", :tag => s.version.to_s }
s.platform = :ios, '9.0'
s.requires_arc = true
s.source_files = 'Source/**/*.swift'
s.frameworks = 'UIKit'
s.ios.deployment_target = '9.0'
end
我正在使用该pod lib lint
命令来确保它通过了 Podspec 测试,但我收到了这个错误:
错误 | xcodebuild:/Users/Andrew/Code/ConversationVC/Source/View/ConversationImageCell.swift:10:8:错误:没有这样的模块'FLAnimatedImage'
该文件确实有import FLAnimatedImage
一行,引用了我的一个 pod,就像我项目中的许多其他文件一样。
我确实尝试在另一个项目中使用 pod,提供 git url,它成功了,但是当我在 Xcode 中构建工作区时,它给了我同样的错误,与缺少的 FLAnimatedImage 框架有关。
我想知道我应该如何处理这种情况?