1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FlutterでMultiple targets match implicit dependency for linker flagsが出たとき

Posted at

エラー内容

 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

終わり

  • これの解決にめ数時間を取られてしまったので誰かの役に立てば幸いです
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?