Closed MayeuldP closed 6 years ago
@MayeuldP Why are you using Carthage? The OneSignal RN SDK is distributed through npm. Are you using Carthage for some other dependency?
Yeap ! That's it !
So currently I got a redScreen with this one : this._nativeModule.addListener is not a function ... this._nativeModule.addListener is undefined
...it's indeed because of RNOneSignal, because it's the corresponding file of the error, that's why I think it could come from the carthage update because it's the only place where I have troubles with OpenSignal setup...
@MayeuldP I still don't quite understand what you are doing with Carthage. Can you send me your Cartfile?
Here it is (in my Cartfile) :
github "intercom/intercom-ios"
github "bugsnag/bugsnag-cocoa"
github "mixpanel/mixpanel-iphone"
github "geektimecoil/react-native-onesignal"
I can't right now try it, but so should I try to remove it from the cartfile, and try to setting up correctly with npm and react-native link ?
Thank a lot for trying to help me by the way 👍
@MayeuldP Yes, you will want to remove it from Carthage and install it via npm. Please make sure to read the readme, this will resolve your problem, please feel free to ask if you encounter any further issues.
I got this message
Dependency "react-native-onesignal" has no shared framework schemes
when I run in my projectcarthage update --platform iOS
.... Any ideas ?Concerning my config :