我有一个额外的目标,即今天的小部件。我正在尝试向此目标添加一些 pod,但是当我尝试导入模块时,我没有得到这样的模块“xxx”,顺便说一下它正在处理我的主要目标。这是我已经做过的,
播客文件
target 'My-Project' do
use_frameworks!
pod 'SwiftyUserDefaults'
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'
end
target 'My-Widget' do
use_frameworks!
pod 'SwiftyUserDefaults'
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
- pod安装没有错误。
- .xcworkspace 打开的项目
pod --version
是 1.0.1- 我已经多次清除派生数据、清理项目、重新打开项目和重建项目。
我怎样才能让它工作?