1) Initialize a react-native project with react-native init
2) Initialize cocoapods and add "pod 'GVRSDK'" to the pod file, run pod install
3) open workspace, run project in xcode or via react-native run-ios
Expected Behavior
Run without linker error
Actual Behavior
Fails to link with the following error:
duplicate symbol __ZN3fLI9FLAGS_novE in:
/test_proj/ios/Pods/GVRSDK/Libraries/libGVRSDK.a(vlog_is_on_8d2e7d29c7bb2e5dfa3670dcea4320a0.o)
/Library/Developer/Xcode/DerivedData/test_proj-btwdvvwnrjygbfeqvozqudjeesra/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o)
duplicate symbol __ZN3fLI7FLAGS_vE in:
/test_proj/ios/Pods/GVRSDK/Libraries/libGVRSDK.a(vlog_is_on_8d2e7d29c7bb2e5dfa3670dcea4320a0.o)
/Library/Developer/Xcode/DerivedData/test_proj-btwdvvwnrjygbfeqvozqudjeesra/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to Reproduce
1) Initialize a react-native project with react-native init 2) Initialize cocoapods and add "pod 'GVRSDK'" to the pod file, run pod install 3) open workspace, run project in xcode or via react-native run-ios
Expected Behavior
Run without linker error
Actual Behavior
Fails to link with the following error:
Demo Project
https://github.com/shauntc/ReactNativeGVRSDKLinkerFailure run 'pod install' in ios/ to install cocoapods