badfeatures/react-native-nearby-api

Duplicate symbol issue when building example

Closed this issue · 1 comments

I get the following error when building the example app. Can't really figure where the symbols are beig duplicated. Any pointers?

duplicate symbol __ZN6google10AddLogSinkEPNS_7LogSinkE in:
    /Users/user/Library/Developer/Xcode/DerivedData/example-cgaryrzrmdqdxlhdvluwfugfneku/Build/Products/Debug-iphoneos/libReact.a(logging.o)
    /Users/user/Downloads/drivers/react-native-nearby-api/example/ios/Pods/NearbyMessages/Libraries/libGNSMessages.a(logging.o)
duplicate symbol __ZN6google13RemoveLogSinkEPNS_7LogSinkE in:
    /Users/user/Library/Developer/Xcode/DerivedData/example-cgaryrzrmdqdxlhdvluwfugfneku/Build/Products/Debug-iphoneos/libReact.a(logging.o)
    /Users/user/Downloads/drivers/react-native-nearby-api/example/ios/Pods/NearbyMessages/Libraries/libGNSMessages.a(logging.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

As mentioned in the README, you have to run the renameLogger.sh after the build has failed the first time.