react-native-360 icon indicating copy to clipboard operation
react-native-360 copied to clipboard

Clang error

Open lex-github opened this issue 8 years ago • 9 comments

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?

lex-github avatar Aug 06 '17 17:08 lex-github

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

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

tiero avatar Aug 07 '17 11:08 tiero

@tiero from GVRSDK/GVRView to GVRSDK

RichardLindhout avatar Aug 25 '17 07:08 RichardLindhout

@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

RichardLindhout avatar Aug 25 '17 07:08 RichardLindhout

@RichardLindhout Can you share your solution please?

fryossi avatar Jan 28 '18 10:01 fryossi

@RichardLindhout Can you share your solution please?

gilra2000 avatar Mar 07 '18 05:03 gilra2000

@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!

intimateo avatar Mar 28 '18 23:03 intimateo

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

venkataravitejavilla avatar Feb 15 '19 06:02 venkataravitejavilla

@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.

intimateo avatar Feb 15 '19 14:02 intimateo

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.

RichardLindhout avatar Feb 15 '19 18:02 RichardLindhout