googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

Linker clash with React Native (vlog_is_on.o) #305

Open shauntc opened 6 years ago

shauntc commented 6 years ago

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:

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)

Demo Project

https://github.com/shauntc/ReactNativeGVRSDKLinkerFailure run 'pod install' in ios/ to install cocoapods

HumanUndead commented 6 years ago

did you get any solution for this??

shauntc commented 6 years ago

No but you can check out this thread for a hacked solution