tiero / react-native-360

A React Native wrapper for Google VR Cardboard SDK
MIT License
141 stars 38 forks source link

Clang error #16

Open lex-github opened 7 years ago

lex-github commented 7 years ago

I followed instructions with a fresh project, get:

ld: warning: ignoring file /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_x86.a, missing required architecture armv7 in file /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_x86.a (2 slices) duplicate symbol ZN6google13RemoveLogSinkEPNS_7LogSinkE in: /Users/lex/Library/Developer/Xcode/DerivedData/TennisVr-gksfkhyqhcdyfxauimeqairrjzyc/Build/Products/Debug-iphoneos/libReact.a(logging.o) /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_arm.a(logging.o) duplicate symbol __ZN6google10AddLogSinkEPNS_7LogSinkE in: /Users/lex/Library/Developer/Xcode/DerivedData/TennisVr-gksfkhyqhcdyfxauimeqairrjzyc/Build/Products/Debug-iphoneos/libReact.a(logging.o) /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_arm.a(logging.o) duplicate symbol ZN3fLI9FLAGS_novE in: /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_arm.a(vlog_is_on.o) /Users/lex/Library/Developer/Xcode/DerivedData/TennisVr-gksfkhyqhcdyfxauimeqairrjzyc/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o) duplicate symbol __ZN3fLI7FLAGS_vE in: /Users/lex/Desktop/WORK/REACT_TENNIS/TennisVr/ios/Pods/GVRSDK/GVRView/Libraries/libGVRView_arm.a(vlog_is_on.o) /Users/lex/Library/Developer/Xcode/DerivedData/TennisVr-gksfkhyqhcdyfxauimeqairrjzyc/Build/Products/Debug-iphoneos/libReact.a(vlog_is_on.o) ld: 4 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

screenshot 2017-08-06 20 32 20

Help please, what i am doing wrong?

tiero commented 7 years ago

Seems that Google renamed from GVRSDK to CardboardSDK. Need time to investigate

Reference: https://github.com/airbnb/react-native-maps/issues/718#issuecomment-257476236

RichardLindhout commented 7 years ago

@tiero from GVRSDK/GVRView to GVRSDK

RichardLindhout commented 7 years ago

@LexLexLex Have gone through that. Don't know exactly wat the reason was. But probably I found a solution on the reference @tiero mentions: https://github.com/airbnb/react-native-maps/issues/718

fryossi commented 6 years ago

@RichardLindhout Can you share your solution please?

gilra2000 commented 6 years ago

@RichardLindhout Can you share your solution please?

intimateo commented 6 years ago

@gilra2000 @fryossi I had to downgrade to RN 0.44.3 and React 16.0.0-alpha.6 also you have to change in build phases > Bundle React Native code and images > ".../scripts/" to ".../packager/" and remove libRCTBlob.a in Link Binary with Libraries and finally works!

venkataravitejavilla commented 5 years ago

@intimateo do you have any example repo for the same, I have facing many issues while integrating on the app.

intimateo commented 5 years ago

@venkataravitejavilla finally I could run this module but the experience isn’t good so I decided integrated Viro Media to my project because it runs so good in Android and iOS. It could take a couple days to integrate and learn the code but it is worth it.

RichardLindhout commented 5 years ago

After all I removed this library because I could't get it to the iOS store because of some vague file existed somewhere in some of the dependencies or something.