質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
コンパイルエラー

コンパイルのフェーズで生成されるエラーです。よく無効なシンタックスやタイプが含まれているとき発生します。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

x86_64

x86-64は、 x86命令を64ビット幅のデータやメモリアドレスに対応できるよう拡張した命令セットです。

Q&A

解決済

1回答

1896閲覧

cocoaPods経由でライブラリーを導入したら「40 duplicate symbols for architecture x86_64」というエラーが発生した

kajirita2002

総合スコア14

コンパイルエラー

コンパイルのフェーズで生成されるエラーです。よく無効なシンタックスやタイプが含まれているとき発生します。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

x86_64

x86-64は、 x86命令を64ビット幅のデータやメモリアドレスに対応できるよう拡張した命令セットです。

0グッド

0クリップ

投稿2020/02/27 01:32

編集2020/02/27 01:34

cocoapodsでライブラリーを導入したすぐ後、ビルドするとなぜか「40 duplicate symbols for architecture x86_64」というエラーが出てきます。調べた結果、ライブラリーを導入したことによる他のライブラリーとのコンパイルが発生しているとい流ということになり、エラーメッセージ上のコンパイルが発生している箇所を指し示すLOG(Build target GoogleUtilities -LOG)を見てみましたがこれをどのように取り除くのかがわかりません!コードが動かせなくなり困っています!!!!よろしくお願いします!

文字数の関係上、LOGの下の数行は取り除かざるを得ませんでした! 後ほど返信にてお返しいたします!

swift

1duplicate symbol '_OBJC_IVAR_$_GULZeroingWeakContainer._object' in: 2 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 3 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 4duplicate symbol '_OBJC_CLASS_$_GULAppDelegateObserver' in: 5 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 6 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 7duplicate symbol '_OBJC_METACLASS_$_GULAppDelegateObserver' in: 8 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 9 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 10duplicate symbol '_OBJC_CLASS_$_GULZeroingWeakContainer' in: 11 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 12 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 13duplicate symbol '_OBJC_METACLASS_$_GULZeroingWeakContainer' in: 14 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 15 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 16duplicate symbol '_OBJC_CLASS_$_GULAppDelegateSwizzler' in: 17 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 18 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 19duplicate symbol '_OBJC_METACLASS_$_GULAppDelegateSwizzler' in: 20 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 21 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 22duplicate symbol '_OBJC_IVAR_$_GULAppDelegateObserver._isObserving' in: 23 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler 2.o 24 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULAppDelegateSwizzler.o 25duplicate symbol '_OBJC_IVAR_$_GULHeartbeatDateStorage._fileCoordinator' in: 26 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage 2.o 27 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage.o 28duplicate symbol '_OBJC_CLASS_$_GULHeartbeatDateStorage' in: 29 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage 2.o 30 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage.o 31duplicate symbol '_OBJC_METACLASS_$_GULHeartbeatDateStorage' in: 32 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage 2.o 33 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage.o 34duplicate symbol '_OBJC_IVAR_$_GULHeartbeatDateStorage._fileURL' in: 35 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage 2.o 36 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULHeartbeatDateStorage.o 37duplicate symbol '_getGULLoggerClient' in: 38 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger 2.o 39 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger.o 40duplicate symbol '_GULLogError' in: 41 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger 2.o 42 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger.o 43duplicate symbol '_OBJC_CLASS_$_GULLoggerWrapper' in: 44 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger 2.o 45 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger.o 46duplicate symbol '_OBJC_METACLASS_$_GULLoggerWrapper' in: 47 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger 2.o 48 /Users/kajimurarita/Library/Developer/Xcode/DerivedData/RoutineAppMeteo-clifpgsyqhexohbyawcynjxxqabu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleUtilities.build/Objects-normal/x86_64/GULLogger.o 49duplicate symbol '_GULResetLogger' in:

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

StackOverflow に以下のコマンドで解決したという報告がありました。
CocoaPods をプロジェクトからいったん削除して入れ直すので、最後の手段ですが…。

pod deintegrate pod install

参考: Firebase pods generate duplicate symbols for architecture arm64 - Stack Overflow

投稿2020/02/27 03:16

hoshi-takanori

総合スコア7895

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kajirita2002

2020/02/27 04:18

解決しました!!ありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問