skrafft / react-native-jitsi-meet

React native wrapper for Jitsi Meet SDK
Apache License 2.0
285 stars 349 forks source link

react-native-jitsi-meet EXC_BAD_ACCESS ios #355

Open aaryavrate opened 2 years ago

aaryavrate commented 2 years ago

I am facing an issue while building for IOS with Jitsi. The build works file, but I get run-time halt in Xcode for device as well as simulation with EXC_BAD_ACCESS. The app works fine, if I remove Jitsi.

Thanks in advance.

My Dependencies & Dev Dependies are as:


"dependencies": {

    "@react-native-community/datetimepicker": "4.0.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "5.0.0",
    "@react-native-picker/picker": "^2.2.1",
    "@react-navigation/bottom-tabs": "^6.0.9",
    "@react-navigation/compat": "^5.1.25",
    "@react-navigation/drawer": "5.12.4",
    "@react-navigation/native": "5.9.3",
    "@react-navigation/stack": "5.14.3",
    "@stripe/stripe-react-native": "0.2.3",
    "axios": "^0.22.0",
    "convert-string": "^0.1.0",
    "dependencies": "^0.0.1",
    "expo": "^44.0.3",
    "expo-app-loading": "~1.3.0",
    "expo-asset": "~8.4.5",
    "expo-font": "~10.0.4",
    "expo-linear-gradient": "~11.0.0",
    "expo-modules-core": "~0.6.3",
    "expo-secure-store": "^11.1.1",
    "expo-splash-screen": "~0.14.1",
    "expo-status-bar": "~1.2.0",
    "galio-framework": "^0.7.1",
    "install": "^0.13.0",
    "moment": "^2.29.1",
    "peer": "^0.6.1",
    "react": "17.0.1",
    "react-content-loader": "^6.0.3",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-ble-manager": "^8.0.1",
    "react-native-bluetooth-status": "^1.5.1",
    "react-native-chart-kit": "^6.11.0",
    "react-native-codegen": "^0.0.12",
    "react-native-document-picker": "^6.0.4",
    "react-native-dotenv": "^3.2.0",
    "react-native-dropdown-picker": "^3.7.0",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-flash-message": "^0.2.0",
    "react-native-gesture-handler": "~2.1.0",
    "react-native-image-picker": "^4.6.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-modal-dropdown": "git+https://github.com/siemiatj/react-native-modal-dropdown.git",
    "react-native-nodemediaclient": "^0.2.18",
    "react-native-reanimated": "~2.2.2",
    "react-native-restart": "0.0.22",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.10.1",
    "react-native-sha256": "^1.4.7",
    "react-native-svg": "12.1.1",
    "react-native-toast-message": "^1.6.0",
    "react-native-web": "0.17.1",
    "react-native-webview": "11.15.0",
    "react-redux": "^7.2.5",
    "react-router-native": "^5.2.0",
    "react-use-faceapi": "^1.0.1",
    "redux": "^4.1.1",
    "socket.io-client": "^4.1.2",
    "storyblok-js-client": "^4.1.4"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/preset-react": "^7.16.7",
    "@babel/preset-typescript": "^7.16.7",
    "@types/react-native": "~0.64.12",
    "app-icon": "^0.13.2",
    "babel-jest": "~25.2.6",
    "babel-preset-expo": "9.0.1",
    "cross-env": "^7.0.0",
    "expo-cli": "^3.11.7",
    "jest-expo": "^44.0.0",
    "metro-config": "^0.67.0",
    "react-test-renderer": "~16.13.1",
    "reactotron-react-native": "^5.0.1",
    "reactotron-redux": "^3.1.3"
  },

npx react-native --version warn Package expo-modules-core has been ignored because it contains invalid configuration. Reason: "dependency.platforms.ios" must be of type object 5.0.1

The compile log is:


objc[5375]: Class PodsDummy_DoubleConversion is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x1062bd318) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019e7b00). One of the two will be used. Which one is undefined.
objc[5375]: Class PodsDummy_FBReactNativeSpec is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x1062bd368) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ebd00). One of the two will be used. Which one is undefined.
objc[5375]: Class _RCTTypedModuleConstants is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x106309d58) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ebf88). One of the two will be used. Which one is undefined.
objc[5375]: Class PodsDummy_RCTTypeSafety is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x106309da8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ebfd8). One of the two will be used. Which one is undefined.
objc[5375]: Class RNCAsyncStorage is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x106309e20) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ec000). One of the two will be used. Which one is undefined.
objc[5375]: Class PodsDummy_RNCAsyncStorage is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x106309df8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ec078). One of the two will be used. Which one is undefined.
objc[5375]: Class PodsDummy_RNSVG is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a1b8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019eda68). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGBezierElement is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a1e0) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019eda90). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGBrush is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a230) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edae0). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGCircle is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a2a8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edb58). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGCircleManager is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a2f8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edba8). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGClipPath is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a348) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edbf8). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGClipPathManager is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a398) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edc48). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGContextBrush is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a3c0) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edc70). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGDefs is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a438) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edce8). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGDefsManager is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a488) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edd38). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGEllipse is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a4d8) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edd88). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGEllipseManager is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a528) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019eddd8). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGFontData is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a550) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ede00). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGForeignObject is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a5a0) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019ede50). One of the two will be used. Which one is undefined.
objc[5375]: Class RNSVGForeignObjectManager is implemented in both /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/Frameworks/JitsiMeetSDK.framework/JitsiMeetSDK (0x10630a618) and /private/var/containers/Bundle/Application/77E6B359-ED6B-474A-A466-D5E22B11BA92/com.app/com (0x1019edec8). One of the two will be used. Which one is undefined.
aaryavrate commented 2 years ago

Here is the screenshot of crash screen from Xcode image

aaryavrate commented 2 years ago

Here is the reproduction repository https://github.com/aaryavrate/jitsitest

saheemhussain commented 2 years ago

@aaryavrate I had the same issue, but figured out that I was actually using wrong version of Xcode the project was build on.

MahmudHasanMenon commented 2 years ago

@saheemhussainchicmic Which Xcode version you used when facing that issue and how can you fix it??

whitmanlui commented 2 years ago

I had the same issue, how can you fix?

saheemhussain commented 2 years ago

I eventually ended up using Xcode 12.0 to solve this issue for my project.

whitmanlui commented 2 years ago

Is there any other way to fix it?

huuanhopp commented 2 years ago

hi, i spent a long time to fix it. let update version SDK in react-native-jitsi-meet.podspec to 5.0.2 and enjoy it

gitmazzio commented 2 years ago

Hi @huuanhopp, I tried to update react-native-jitsi-meet.podspec to v5.0.2 but pod install or pod update fails. Could you please write instructions? Thanks

mubashiralisiddiqui commented 1 year ago

I am having the same issue any workaround?

skrafft commented 1 year ago

Hi,

This library is now deprecated since the jitsi Team published an official react native sdk

You should use it, it has way better support.

mubashiralisiddiqui commented 1 year ago

Hi,

This library is now deprecated since the jitsi Team published an official react native sdk

You should use it, it has way better support. Thanks i will try that