お世話になっております。
現在swiftにてiOSアプリを開発しているのですが、
Firebaseの導入について質問があります。
embedded Frameworkにてレイヤー構造を構築しているのでが、
cocoapodsにて複数ターゲットにFirebase/Coreをインストールすると
下記のようなログを吐き出しアプリ起動後クラッシュしてしまいます。
objc[7037]: Class FIRMessagingLog is implemented in both hogehoge (0x100c2f480). One of the two will be used. Which one is undefined. 2017-08-09 11:32:40.874 hogehoge[7037] <Error> [Firebase/Core][I-COR000005] No app has been configured yet.
また、cocoapodsは下記のように設定しおります。
platform :ios, '9.0' inhibit_all_warnings! target 'hoge-ios' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for hoge-ios pod 'Firebase/Core' target 'hoge-iosTests' do inherit! :search_paths # Pods for testing end target 'hoge-iosUITests' do inherit! :search_paths # Pods for testing end end target 'UserInterface' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for UserInterface pod 'Firebase/Core' end
試しにGoogleService-Info.plistをターゲット毎にCopy Bundle Resourcesに組み込んで見ましたが
クラッシュしてしまいました。
cocoapodsを利用して複数ターゲットにFirebaseSDKを組み込むことはできないのでしょうか?
代替え案含めご存知の方ご連絡お待ちしております。
何卒宜しくお願いいたします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/13 06:57