You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Crash on launch if Core Telephony is linked — -[CTTelephonyNetworkInfo init] #3112
Hmm. This functionality should be fine @skajake, so could you email [email protected] since it's probably specific to your token string and we'll go from there?
What device is this? MGLMapboxEventsData attempts to get the network connection type using Core Telephony, but we’ve had problems with this on some devices in the past: #2687.
I was able to replicate this crash with the simulator by manually linking CoreTelephony in a new v3.0.0 CocoaPods project. I'll look in to a fix, but, in the meantime, this can be avoided by not linking CoreTelephony.
Activity
incanus commentedon Nov 24, 2015
What's the exception thrown?
skajake commentedon Nov 24, 2015
No exception, just a bad access:
incanus commentedon Nov 24, 2015
Hmm. This functionality should be fine @skajake, so could you email [email protected] since it's probably specific to your token string and we'll go from there?
1ec5 commentedon Nov 24, 2015
What device is this? MGLMapboxEventsData attempts to get the network connection type using Core Telephony, but we’ve had problems with this on some devices in the past: #2687.
incanus commentedon Nov 24, 2015
Sorry about that @skajake — I may have jumped to a conclusion. Are you using the 3.0.0 version we released to CocoaPods yesterday? It fixes #2687.
skajake commentedon Nov 24, 2015
This is happening in an Ipad Air 2 simulator. Also happens on a hardware Ipad Air device.
Cocoapods pulled in version 3.0.0 hash:
Mapbox-iOS-SDK: 5e7bafc554a15ebfc615d8b0fa0a0b5d31faac70
friedbunny commentedon Nov 25, 2015
I was able to replicate this crash with the simulator by manually linking CoreTelephony in a new v3.0.0 CocoaPods project. I'll look in to a fix, but, in the meantime, this can be avoided by not linking CoreTelephony.
Symbolicated backtrace:
davidbroza commentedon Nov 25, 2015
Not linking CoreTelephony does not seems to work for me. Issue is still present.
skajake commentedon Nov 25, 2015
As best as I can tell, I am not linking CoreTelephony, but I am investigating further. Crash still occuring.
skajake commentedon Nov 25, 2015
So I was able to get the project to run by removing a specific pod dependency from my project. Namely: https://github.com/vfr/Reader
Its podspec pulls in the following frameworks: "UIKit", "Foundation", "CoreGraphics", "QuartzCore", "ImageIO", "MessageUI"
friedbunny commentedon Nov 25, 2015
@skajake Interesting, looks like MessageUI probably pulls in CoreTelephony.
3 remaining items
friedbunny commentedon Nov 25, 2015
iosappdoesn't (and shouldn't) link CoreTelephony, but manually linking it does not crash and works as expected.[-]Crash on launch[/-][+]Crash on launch if Core Telephony is linked — -[CTTelephonyNetworkInfo init][/+]skajake commentedon Nov 28, 2015
Update: I am still getting the crash, but only when running on physical hardware (iPad Air 2). Only seems to happen when pulling in https://github.com/yapstudios/YapDatabase via Cocoapods. Can't seem to figure out what in YapDatabase is linking in telephony.
refs #3112: cleanups around Core Telephony runtime
[ios] fix CoreTelephony crash (by removing it)
refs #3112: cleanups around Core Telephony runtime
[ios] fix CoreTelephony crash (by removing it)