zoho / SalesIQ-Mobilisten-ReactNative

Your mobile app's ideal live chat partner. Power up your mobile App with the SalesIQ Mobilisten SDK for React-Native.
https://mobilisten.io/
8 stars 12 forks source link

Does not work React Native 0.62 #3

Closed RageOfJustice closed 4 years ago

RageOfJustice commented 4 years ago

System info

System: OS: macOS 10.15.4 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 570.91 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 13.11.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.13.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 29 Build Tools: 29.0.3 Android NDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild

Project info

react-native: 0.62

enabled: image

pods installed according to 0.62 RN automatic-installation

Steps to reproduce

  1. npx react-native init somename
  2. yarn add react-native-zohosalesiq-mobilisten
  3. cd ios && pod install
  4. Yes - for embed swift
  5. yarn ios --device (--device because it does not build for simulators)

After these steps you can catch the error in xcode

dyld: Library not loaded: @rpath/Mobilisten.framework/Mobilisten
  Referenced from: /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/BahamasEvac
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten: code signature invalid for '/private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten'

    /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten: code signature invalid for '/private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten'

    /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten: stat() failed with errno=1
    /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten: code signature invalid for '/private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten'

    /private/var/containers/Bundle/Application/02C28F75-CC97-4426-92C1-4F77CFC80AF3/BahamasEvac.app/Frameworks/Mobilisten.framework/Mobilisten: stat() failed with errno=1
(lldb) 
Rishabh-Raghunath commented 4 years ago

This issue seems to be very similar to an bug in iOS 13.3.1 which causes a runtime crash in projects using external frameworks when using a free developer account. Do you happen to be using a free developer account? If yes, could you try updating your device to iOS 13.4.1 and check if the reported issue still happens? Please try a clean and build from XCode as well to check if it solves the issue. Code signing issues are usually account related.

RageOfJustice commented 4 years ago

Ok Ill update to 13.4.1 and try again. But I do not understand how signing relates to this issue. Could you provide documentation/article links from Apple where they says something like this? Also its very convenient that I cannot test on the simulator (and very odd also) because my simulator device's version is up to date

Rishabh-Raghunath commented 4 years ago

Yes, you can find references to the issue which I have mentioned below.

This issue seems to have been resolved in an update to iOS 13.4.1 and hence wanted to confirm with you if this issue might be the underlying cause for the runtime crash.

RageOfJustice commented 4 years ago

Its working on the 13.4.1