React-native-orientation: Installation Issue: Duplicate Symbols

Created on 12 Dec 2016  路  3Comments  路  Source: yamill/react-native-orientation

Hi, I'm trying to get this installed but getting the following error after I add libRCTOrientation.a to Linked Frameworks and Libraries

duplicate symbol _OBJC_CLASS_$_Orientation in: /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/react-native-orientation/libreact-native-orientation.a(Orientation.o) /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/libRCTOrientation.a(Orientation.o) duplicate symbol _OBJC_METACLASS_$_Orientation in: /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/react-native-orientation/libreact-native-orientation.a(Orientation.o) /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/libRCTOrientation.a(Orientation.o) duplicate symbol _OBJC_IVAR_$_Orientation._bridge in: /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/react-native-orientation/libreact-native-orientation.a(Orientation.o) /Users/Robbie/Library/Developer/Xcode/DerivedData/voiceiqoauth-cvajnuzzntoezcgiajimusldnoym/Build/Products/Debug-iphonesimulator/libRCTOrientation.a(Orientation.o) ld: 3 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any insight would be appreciated.

Most helpful comment

I also encountered such a problem, but the solution is not the same as you.

remove libRCTOrientation.a add libreact-native-orientation.a into Build Phases.

All 3 comments

Solution: I added the libRCTOrientation.a inside the RCTOrientation.xcodeproj and that fixed it

I also encountered such a problem, but the solution is not the same as you.

remove libRCTOrientation.a add libreact-native-orientation.a into Build Phases.

This is something broken on move from 3.1.2 to 3.1.3, if one react-native unlink react-native-orientation and link again. libRCTOrientation.a would be orphaned and removed from Xcode, so I need to manually link libreact-native-orientation.a. @stoneman1 FYI

Was this page helpful?
0 / 5 - 0 ratings

Related issues

balmasich picture balmasich  路  6Comments

yamill picture yamill  路  8Comments

sergio-solnet picture sergio-solnet  路  9Comments

AmmiWang picture AmmiWang  路  3Comments

julesmoretti picture julesmoretti  路  7Comments