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

SDK crash at app launch on iOS 12.0 #1905

Closed
1 of 2 tasks
oiledCode opened this issue Dec 6, 2019 · 6 comments
Closed
1 of 2 tasks

SDK crash at app launch on iOS 12.0 #1905

oiledCode opened this issue Dec 6, 2019 · 6 comments
Labels

Comments

@oiledCode
Copy link

oiledCode commented Dec 6, 2019

Description

The sdk crash at app launch on iOS 12.0

Repro Steps

  1. Integrate the SDK on an app
  2. Initialize the SDK
  3. Launch the app on a device running iOS 12.0
  4. The SDK crash

Details

The crash is generated by the call -[MSDeviceTracker updateDevice] line 145.
On this line the SDK try to access the serviceSubscriberCellularProviders property of a CTTelephonyNetworkInfo object, and although this property should be available on iOS 12.0 the system raise an unrecognized selector sent to instance xxxx exception.
This clearly smells like an iOS bug, but maybe can be mitigated by an @available(iOS 12.1, *)

  1. Which SDK version are you using?
    • e.g. 2.5.0
  2. Which OS version did you experience the issue on?
    • e.g. iOS 12.0
  3. What device version did you see this error on? Were you using an emulator or a physical device?
    • e.g. iPhone phisical device
  4. What language are you using?
    • Objective C
    • Swift
@annakocheshkova
Copy link

annakocheshkova commented Dec 6, 2019

Thanks for reporting that @oiledCode! We will look into that.

@candostdagdeviren
Copy link

Hello! Is there any plan on fixing this soon? We're having the same crash on physical iPad with iOS 12. It is not reproducible on the simulator.

@ilyashumihin
Copy link
Contributor

Hi, @candostdagdeviren!
This bug will be fixed in the next release - 2.5.4.

@Sai
Copy link

Sai commented Jan 29, 2020

The #1914 seems not fix the issue because we have collected similar crashes on iOS 12.4.4.

-[MSDeviceTracker updatedDevice]
MSDeviceTracker.m, line 145
SIGABRT: -[CTTelephonyNetworkInfo serviceSubscriberCellularProviders]: unrecognized selector sent to instance 0x283769440

Most affected devices: iPhone 6 Plus
Most affected OS: 12.4.4

The app might still crash if the SDK calling serviceSubscriberCellularProviders above 12.1.

Ref.

if (@available(iOS 12.1, *)) {
  NSDictionary<NSString *, CTCarrier *> *carriers = [telephonyNetworkInfo serviceSubscriberCellularProviders];
  carrier = [self firstCarrier:carriers];
}

@AnastasiaKubova
Copy link

Hi, @Sai ! Thanks for getting in touch with us!
I try to reproduce this issue on iPhone 6 Plus iOS 12.4.4, but it works expected for me.
This fix will be released soon. We will notify you when the release is released.

@annakocheshkova
Copy link

Hi there! This issue has been fixed in the 3.0.0 release. Please check it and reopen in case there are any issues.

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

No branches or pull requests

6 participants