今日のウィジェットである追加のターゲットがあります。このターゲットにいくつかのポッドを追加しようとしていますが、モジュールをインポートしようとすると、そのようなモジュール「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
- ポッドはエラーなしでインストールされました。
- .xcworkspace によって開かれたプロジェクト
pod --version
は 1.0.1 です- 派生データを消去し、プロジェクトを消去し、プロジェクトを再度開き、プロジェクトを再構築しました。
どうすればそれを機能させることができますか?