Linker clash with GVRSDK (vlog_is_on.o)
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS High Sierra 10.13.3 Node: 7.9.0 Yarn: 0.23.2 npm: 4.2.0 Watchman: 4.7.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed) react: ^16.2.0 => 16.2.0 react-native: ^0.53.0 => 0.53.0
Steps to Reproduce
- Initialize a react-native project with react-native init
- Initialize cocoapods and add “pod ‘GVRSDK’” to the pod file, run pod install
- 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)
Reproducible Demo
https://github.com/shauntc/ReactNativeGVRSDKLinkerFailure run ‘pod install’ in ios/ to install cocoapods
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Tankerxyz
Our temporary fix for this is to remove it from the GVRSDK lib using this shell script:
Adding this to the end of our podfile to run it after each time we run pod install:
(the script is saved in the same directory as the podfile as “pod_post_install.sh”)
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community’s attention? This issue may be closed if no further activity occurs. You may also label this issue as “For Discussion” or “Good first issue” and I will leave it open. Thank you for your contributions.