ld: 3 duplicate symbols for architecture arm64のエラーが出た時の対処法

duplicate symbol '_pb_field_iter_next' in:

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common.o

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common 2.o

duplicate symbol '_pb_field_iter_begin' in:

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common.o

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common 2.o

duplicate symbol '_pb_field_iter_find' in:

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common.o

    /Users/neko/Library/Developer/Xcode/DerivedData/RomPlayer-xxxxxxxxxx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/nanopb.build/Objects-normal/arm64/pb_common 2.o

ld: 3 duplicate symbols for architecture arm64


PROJECTの設定で、Build Settings -> Apple Clang - Code Generation -> No Common Blocks の値を、YesをNoに変更。

pod deintegrate

pod install

Follow me!

コメントを残す

メールアドレスが公開されることはありません。