Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: 4 duplicate symbols for architecture arm64 #2185

Closed
cuibeihong opened this issue Dec 20, 2018 · 4 comments
Closed

ld: 4 duplicate symbols for architecture arm64 #2185

cuibeihong opened this issue Dec 20, 2018 · 4 comments

Comments

@cuibeihong
Copy link

cuibeihong commented Dec 20, 2018

i use Xcode10.1 run React native xcodeproj
error:

duplicate symbol __ZN5realm5_impl12partial_sync9WorkQueue13create_threadEv in:
/Users/div/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/libRealmReact.a(work_queue.o)
duplicate symbol __ZN5realm5_impl12partial_sync9WorkQueueD2Ev in:
/Users/div/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/libRealmReact.a(work_queue.o)
duplicate symbol __ZN5realm5_impl12partial_sync9WorkQueueD1Ev in:
/Users/div/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/libRealmReact.a(work_queue.o)
duplicate symbol __ZN5realm5_impl12partial_sync9WorkQueue7enqueueENSt3__18functionIFvvEEE in:
/Users/div/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/libRealmReact.a(work_queue.o)
ld: 4 duplicate symbols for architecture arm64

  • Realm JS SDK Version: 2.21.1
  • React Native: 0.57.4

i'm sure add & link realm success.
i need help!

@kneth
Copy link
Contributor

kneth commented Jan 7, 2019

@cuibeihong Building with Xcode 10 might be causing trouble. Please use Xcode 9.

@dakkafex
Copy link

Same issue as of Xcode 11.1, also still with 10, is there a fix for this, or a confirmation that xcode 9 is still the only way?

@madeeha96
Copy link

Facing same issue!

@kneth
Copy link
Contributor

kneth commented Oct 31, 2019

@dakkafex @madeeha96 Which version of Realm JS do you use? Older versions will probably require older versions of Xcode to build. Moreover, if you upgrade from one Realm JS version to a newer version, clearing the build folder can be a good idea.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants