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.
Linking CoreTelephony.framework was broken in v3.0.0 and removed entirely in v3.0.1. Cellular carrier and network statistics are still useful, so let's bring it back.
We never pinned down exactly why it was crashing (#3112), but I suspect the situation will be improved by moving to a dynamic framework distribution (#3183) and we should reinvestigate after that happens.
I'll look at how the conditional CoreTelephony code performs in our dynamic framework, but I wouldn't be opposed to requiring CT again if it still proves buggy.
I've been testing re-adding conditional CoreTelephony support, but can't seem to get past the crash in #3112. It looks like the public CoreTelephony classes might be defined in header files (and as such are always present so the NSClassFromString check passes), but private, internal classes depend on symbols in CoreTelephony.framework and are therefore missing when it's not linked.
Went ahead and removed this from the v3.3.0 milestone. At this point, I think we should close this issue — CT has proven difficult to use optionally and it’s a feature we can live without. @boundsj?
It looks like the public CoreTelephony classes might be defined in header files (and as such are always present so the NSClassFromString check passes), but private, internal classes depend on symbols in CoreTelephony.framework and are therefore missing when it's not linked.
NSClassFromString() doesn’t care where a symbol is defined; it only matters whether a class has been loaded into the Objective-C runtime. There’s no such thing as a “false positive”. The stack trace indicates that Core Telephony is making an assumption about its environment, perhaps assuming that the framework’s initializer has already been called. (We have no idea what’s in the initializer.)
Activity
1ec5 commentedon Jan 19, 2016
@friedbunny, does #3183 address this issue?
friedbunny commentedon Jan 19, 2016
I'll look at how the conditional CoreTelephony code performs in our dynamic framework, but I wouldn't be opposed to requiring CT again if it still proves buggy.
friedbunny commentedon Jan 20, 2016
Going to move this to the next release (currently v3.2.0) to let the dust settle on all the telemetry changes and dynamic framework'ing.
mikemorris commentedon Feb 16, 2016
I've been testing re-adding conditional CoreTelephony support, but can't seem to get past the crash in #3112. It looks like the public CoreTelephony classes might be defined in header files (and as such are always present so the

NSClassFromStringcheck passes), but private, internal classes depend on symbols in CoreTelephony.framework and are therefore missing when it's not linked.friedbunny commentedon Apr 8, 2016
Went ahead and removed this from the v3.3.0 milestone. At this point, I think we should close this issue — CT has proven difficult to use optionally and it’s a feature we can live without. @boundsj?
boundsj commentedon Apr 8, 2016
I agree -- let's close this.
1ec5 commentedon Jun 21, 2016
NSClassFromString()doesn’t care where a symbol is defined; it only matters whether a class has been loaded into the Objective-C runtime. There’s no such thing as a “false positive”. The stack trace indicates that Core Telephony is making an assumption about its environment, perhaps assuming that the framework’s initializer has already been called. (We have no idea what’s in the initializer.)