Closed Tavernari closed 1 year ago
Thank you for the report, I am investigating the issue now
@Tavernari Is your app, or another library in your app, also swizzling applicationWillTerminate
. If you aren't sure then could send a list of libraries (and their versions) that are being used in your app?
Have you seen any other crashes on different methods that are being swizzled in UIApplicationDelegate+OneSignal.m
or is it just applicationWillTerminate
?
Also when trying to reproduce are you sure that you have gotten applicationWillTerminate
to trigger?
I got three different reports with different lines, but if you enter inside those reports the structure of the stack trace is the same for all reports only changing the first item.
This project is an application.
MyApp podfile
workspace 'MyApp'
platform :ios, '11.0'
target 'MyApp' do
project 'MyApp/MyApp.xcodeproj/'
use_frameworks!
pod 'JNKeychain', '0.1.4'
pod 'TLCustomMask', '2.0.0'
pod 'PopupDialog','1.1.1'
pod 'Siren', '5.5.0'
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '5.2.0'
pod 'GoogleMLKit/BarcodeScanning','0.61.0'
pod 'Firebase/Analytics', '6.28.1'
pod 'Firebase/Crashlytics'
pod 'lottie-ios','3.1.8'
pod 'SwiftLint','0.39.2'
pod 'Apollo','0.29.1'
pod 'R.swift','5.2.2'
pod 'FSCalendar', '2.8.1'
pod 'OceanComponents', '1.0.0-beta.14'
pod 'Swinject', '2.7.1'
pod 'IQKeyboardManagerSwift', '6.5.5'
pod 'Mixpanel-swift'
pod 'Lytics', '0.0.2'
pod 'OneSignal', '>= 2.11.2', '< 3.0'
pod 'RNCryptor', '~> 5.0'
pod 'SwiftOTP'
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.11.2', '< 3.0'
end
target 'MyAppTests' do
inherit! :search_paths
pod 'SwiftyMocky','3.5.0'
pod 'OceanComponents', '1.0.0-beta.14'
end
end
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
end
end
end
I put flush call on AppDelegate applicationWillTerminate
, so my friend told me that he got the crash flow, he just close the app and tries to open again, after that on start the application its crash instantly. Maybe I can't use Flush when the application will terminate
I apologize for not following up on this I am going to close due to inactivity
Description: Both Sentry and Crashlytics are warning this error for some users, we are trying to figure out about that but we have no more idea how to investigate this.
We got this title EXC_BAD_ACCESS KERN_PROTECTION_FAILURE -[OneSignalAppDelegate oneSignalApplicationWillTerminate:]
Environment iOS 14.0.1 / 13.7.0 pod 'OneSignal', '>= 2.11.2', '< 3.0'
Steps to Reproduce Issue: I have no idea how to reproduce that error, we tried many ways but without success