Missing Realm constructor or duplicated symbols
See original GitHub issueGoals
Using Realm normally
Expected Results
Actual Results
after install Realm and pod install
, app will launch with error Missing Realm constructor
. After research through github, I found that we should link libRealmReact.a
to Link binary with libraries
. But after linked, app throw error that 155 duplicate symbols for architecture x86_64
.
Steps to Reproduce
react-native init exampleProject yarn add realm cd ios && pod install
Code Sample
import Realm from 'realm
Version of Realm and Tooling
- Realm JS SDK Version: 3.5.0
- Node or React Native: node 10.15.3 RN 0.61.2
- Client OS & Version: Mac OSX Catalina 10.15.1 Xcode 11.2.1
- Which debugger for React Native: None
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:41 (13 by maintainers)
Top Results From Across the Web
Missin Realm Constructor error - MongoDB
Hi, I perfectly followed the instructions that the documentation reported, but every time I start my app it gives me the Missing Realm...
Read more >ECMAScript® 2023 Language Specification - TC39
Introduction. This Ecma Standard defines the ECMAScript 2023 Language. It is the fourteenth edition of the ECMAScript Language Specification.
Read more >ECMAScript® 2022 Language Specification
Introduction. This Ecma Standard defines the ECMAScript 2022 Language. It is the thirteenth edition of the ECMAScript Language Specification.
Read more >WebLogic Server Known and Resolved Issues
Change Request Number Found In Fixed In
CR200627 9.0
CR208373 9.0 9.2
CR214481 9.0 9.2
Read more >WebView - Android Developers
Called when the window containing has change its visibility (between GONE ... Enables or disables the duplication of the parent's state into this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found the solution:
ios
folder from existed project, and replace by theios
folder which is created from the new one.node_modules
andyarn.lock
/package-lock.json
Podfile
ios
folder dont includesPods/
and Podfile.lockHope my workaround could help who are got stuck on running existed project with realm 😃
“react-native”: “0.61.2”, “realm”: “^3.5.0”,
If run
$ react-native run-ios
- its okIf run project in xCode to simmulator - Error: Missing Realm constructor. Did you run “pod install”? Please see https://realm.io/docs/react-native/latest/#missing-realm-constructor for troubleshooting
If remove folder
ios/build
and again run project in xCode - again Error “Missing Realm constructor” and folderios/build
is emptyUPD: Go to xCode menu
Product -> Clean Build Folder
- Yesssss YO!Its work