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.

Coop with Jisti-Meet library: Realm has no setter or ivar for its bridge, which is not permitted.

See original GitHub issue

Goals

I want to use Jitsi-Meet (Video calling library) with Realm

Expected Results

App should run without any issue

Actual Results

When I run the app on iOS, Realm does not work. It shows the following error:

2018-12-28 16:22:34.504 [error][tid:main][RCTModuleData.mm:179] Realm has no setter or ivar for its bridge, which is not permitted. You must either @synthesize the bridge property, or provide your own setter method.

Realm works fine if I remove Jisti-Meet Library

Steps to Reproduce

  1. Create a new react-native app: react-native init AwesomeProject
  2. Install realm-js: npm install realm --save and react-native link realm
  3. Install React Native Jisti Meet: npm install react-native-jitsi-meet --save
  4. Under Build setting set Dead Code Stripping to No, set Enable Bitcode to No and Always Embed Swift Standard Libraries to Yes
  5. add node_modules/react-native-jitsi-meet/ios/WebRTC.framework and node_modules/react-native-jitsi-meet/ios/JitsiMeet.framework to the Embed Binaries.
  6. select Build Settings, find Search Paths . Edit BOTH Framework Search Paths and Library Search Paths. and add path on BOTH sections with: $(SRCROOT)/../node_modules/react-native-jitsi-meet/ios with recursive

Now run the app and the app will show the error.

Code Sample

filename: App.js

import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View, Button} from 'react-native'; import Realm from 'realm'; `const instructions = Platform.select({ ios: ‘Press Cmd+R to reload,\n’ + ‘Cmd+D or shake for dev menu’, android: ‘Double tap R on your keyboard to reload,\n’ + ‘Shake or press menu button for dev menu’, });

type Props = {}; export default class App extends Component<Props> {

constructor(props) { super(props); this.state = { realm: null }; }

componentWillMount() { Realm.open({ schema: [{name: ‘Dog’, properties: {name: ‘string’}}] }).then(realm => { realm.write(() => { realm.create(‘Dog’, {name: ‘Rex’}); }); this.setState({ realm }); }); }

render() {

const info = this.state.realm
? 'Number of dogs in this Realm: ' + this.state.realm.objects('Dog').length
: 'Loading...';


return (
  <View style={styles.container}>
    <Text style={styles.welcome}>Welcome to React Native!</Text>
    <Text style={styles.instructions}>To get started, edit App.js</Text>
    <Text style={styles.instructions}>{instructions}</Text>
    <Button title="Video" 
    // onPress = {() => initiateVideoCall()} 
    />
    <Text style={styles.welcome}>
      {info}
    </Text>
  </View>
);

} }

const styles = StyleSheet.create({ container: { flex: 1, justifyContent: ‘center’, alignItems: ‘center’, backgroundColor: ‘#F5FCFF’, }, welcome: { fontSize: 20, textAlign: ‘center’, margin: 10, }, instructions: { textAlign: ‘center’, color: ‘#333333’, marginBottom: 5, }, }); `

Version of Realm and Tooling

  • Realm JS SDK Version: 2.21.1 (Lower versions also have the same issue )
  • Node or React Native: RN 0.57.8
  • Client OS & Version: iOS Real Device - 12.1.2
  • MacOS: 10.13.6 High Sierra
  • Which debugger for React Native: React Native Debugger

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
saadqbalcommented, Feb 13, 2019

Best of luck 😃

1reaction
saadqbalcommented, Jan 17, 2019

@bmunkholm I have sent an email to sales@realm.io. Could you please look into it? We have a fast approaching deadline. If it is taking time, we will have to shift to WatermelonDB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coop with Jisti-Meet library: Realm has no setter or ivar for its ...
Goals. I want to use Jitsi-Meet (Video calling library) with Realm. Expected Results. App should run without any issue. Actual Results.
Read more >
Jitsi not working with any react native package
Hello, I have try integrat with react native library but not working proper please guide me which react native library are perfect for...
Read more >
Untitled
Extremiste catholique, Envole moi partition flute, Its canada newmarket, #Minecraft torch diy, Diversidad de especies en el mundo, Valley metro church ...
Read more >
words.txt - Welcome Visitors
... no 742 things 741 through 738 most 736 way 736 content 734 people 730 its ... blah 49 bl 49 bizarre 49...
Read more >
Les Cast Codeurs Podcast
Plongez sur un sujet precis avec l interview de l episode. Supportez les radotages de vos hôtes : Emmanuel Bernard (JBoss, Hibernate), Arnaud...
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