Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No known class method for selector 'setExternalUserId:withCompletion:' #969

Closed
luutruong opened this issue Apr 2, 2020 · 10 comments
Closed

Comments

@luutruong
Copy link

Description:

XXX/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:342:16: No known class method for selector 'setExternalUserId:withCompletion:'
  • react-native-onesignal@3.7.0
  • OneSignal@2.13.0
@kian92
Copy link

kian92 commented Apr 2, 2020

Yes, I have same error as well for iOS & Android

@rochapablo
Copy link

rochapablo commented Apr 2, 2020

Same here. The project was working (for a long time), today I had to make some changes and can't even run it.

node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:342:16: No known class method for selector 'setExternalUserId:withCompletion:'
node_modules/react-native-onesignal/ios/RCTOneSignal/RCTOneSignalEventEmitter.m:355:16: No known class method for selector 'removeExternalUserId:'
"react": "16.12.0",
"react-native": "0.61.5",
"react-native-onesignal": "^3.6.3" / "^3.7.0",

@sjaloomconnect
Copy link

I have the same issue,

no known class method for selector 'setExternalUserId:withCompletion:'
no known class method for selector 'removeExternalUserId:'

Just updated to:

"react": "16.13.1",
"react-native": "0.62.0",
"react-native-onesignal": "^3.7.0",

@fritzfr
Copy link

fritzfr commented Apr 2, 2020

Seems to be a broken release.
I fixed this by pinning the versions:

Podfile:

target 'OneSignalNotificationServiceExtension' do
	pod 'OneSignal', '2.12.6'
end

package.json

"react-native-onesignal": "3.6.4",

Works again.

@erickhdzreyes
Copy link

Seems to be a broken release.
I fixed this by pinning the versions:

Podfile:

target 'OneSignalNotificationServiceExtension' do
	pod 'OneSignal', '2.12.6'
end

package.json

"react-native-onesignal": "3.6.4",

Works again.

That's worked forme, thanks!
react-native: 0.61.5

@jkasten2
Copy link
Member

jkasten2 commented Apr 3, 2020

This is now fixed in the 3.7.1 release.
https://github.com/OneSignal/react-native-onesignal/releases/tag/3.7.1

@sjaloomconnect
Copy link

Seems to be working for me too. Thanks for fixing it.

@hugoh59
Copy link

hugoh59 commented May 27, 2020

Still getting error after upgraded to 3.7.1 but worked with 3.6.4.

@Eth3rnit3
Copy link

I had the same error then I replaced platform :ios, '9.0' by platform :ios, '11.0' and I have no more error, so there is a chance that it depends on the desired target.

@abdullahizzuddiin
Copy link

I just upgraded to "version": "3.8.1", and I got this error. Anyone has solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants