question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate symbols in react native build (3.6.4)

See original GitHub issue

Goals

trying to build the app using realm js 3.6.4

Expected Results

build without error

Actual Results

duplicate symbol ‘OBJC_CLASS$_RealmReact’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) duplicate symbol ‘OBJC_METACLASS$_RealmReact’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) duplicate symbol ‘OBJC_IVAR$_RealmReact._eventHandlers’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) duplicate symbol ‘_RealmReactGetJSGlobalContextForExecutor’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) duplicate symbol ‘OBJC_IVAR$_RealmReact._bridge’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) duplicate symbol ‘_initializeOnJSThread(OpaqueJSContext* () block_pointer)’ in: /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmJS.a(RealmReact.o) /Users/runner/Library/Developer/Xcode/DerivedData/Geo-cspvlxxapoefvvelbwbinzucczbj/Build/Intermediates.noindex/ArchiveIntermediates/GeoX/BuildProductsPath/Release-iphoneos/libRealmReact.a(RealmReact.o) ld: 6 duplicate symbols for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Steps to Reproduce

Code Sample

Version of Realm and Tooling

node 10, react native 61.4 android fine, ios not

  • Realm JS SDK Version: ?
  • Node or React Native: ?
  • Client OS & Version: ?
  • Which debugger for React Native: ?/None

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kraenhansencommented, Feb 27, 2020

@dbarner1 please create your own issue with steps to reproduce and preferably a link to a git repository with the minimal amount of code needed to reproduce the issue. That - would be greatly appreciated! 🙂

0reactions
dbarner1commented, Feb 25, 2020

Same error here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 duplicate symbols for architecture x86_64 in react native
I have tried cleaning the build folder, running pod install again but nothing works out. I am stuck on this error. I am...
Read more >
iOS : duplicate symbols for architecture x86_64 ios React Native
iOS : duplicate symbols for architecture x86_64 ios React Native [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
Firebase JavaScript SDK Release Notes - Google
js support to Cloud Storage for Firebase. This release changes the main field in package.json to point to a Node-specific build. If you...
Read more >
duplicate symbols for architecture x86_64 react native - You.com
7 duplicate symbols for architecture x86_64 in react native ... For me, changing 'No Common Blocks' from Yes to No ( under Targets->Build...
Read more >
Documentation - TypeScript 3.7
As an example, Node.js has a dedicated function for this called assert . js ... The declaration flag in TypeScript allows us to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found