エラー内容
Multiple targets match implicit dependency for linker flags '-framework GoogleUtilities'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Runner' from project 'Runner')
解決方法
- Podfileに以下を定義
def google_utilites
pod 'GoogleUtilities'
pod 'GTMSessionFetcher'
end
- target 'Runner' doの内側に入れる
target 'Runner' do
use_modular_headers!
use_frameworks!
google_utilites
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
- 他にも使っているtargetがあればその中にも入れる
target 'NotificationServiceExtension' do
use_frameworks!
google_utilites
pod 'Firebase/Messaging'
end
終わり
- これの解決にめ数時間を取られてしまったので誰かの役に立てば幸いです