-
Notifications
You must be signed in to change notification settings - Fork 264
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
Crash on unit test #229
Comments
@benaneesh The issue is that We recommend making sure you don't use OneSignal in the code your unit testing by wrapping your OneSignal calls. We worked around this in our own Unit tests by swizzling this which you may use the same in your app. OneSignal-iOS-SDK/iOS_SDK/OneSignalSDK/UnitTests/UnitTests.m Lines 360 to 362 in 301338e
Thanks. |
I have encountered the same problem. Could you be more precise on how to fix or circumvent this issue. Thank you |
same problem here! |
Hi, In OCMock
Of course, this simply avoids the crash. If you really need a working |
I still have this issue, too. Run unit test in xcode 11. Please check again. |
Hey all! I'm experiencing the same issue on running unit test on cocoapod linting (also xcode 11), is this bug fix already in timeline for OneSignal team to fix @jkasten2 ? |
We are still experiencing this problem too. #297 Would fix it for us. |
This issue seems to happen to me with a slightly different error message. it said
@jkasten2 not sure what you meant by cmiiw, but I think Care to give examples on Swift? Thanks! |
+1 We're having the same issue |
+1 Having the same issue. Any update would be appreciated. |
+1 😬 |
This issue may be outdated, and there has been a workaround introduced to address this for most users: I will close. Please open a new issue with updated details if this is still a problem. |
Hi,
Installed using cocoapods with
pod 'OneSignal', '~> 2.0'
, which installed version2.5.2
. This broke my unit tests. The tests themselves complete, but then crashes in the end.The text was updated successfully, but these errors were encountered: