Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Re-enable CoreTelephony.framework telemetry #3295

Closed

Description

@friedbunny

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.

Last included code.

/cc @incanus @1ec5

Activity

  1. added
    iOS
    on Dec 15, 2015
  2. self-assigned this
    on Dec 15, 2015
  3. added this to the ios-v3.1.0 milestone on Dec 22, 2015
  4. added
    telemetry
    on Jan 9, 2016
  5. 1ec5 commented on Jan 19, 2016

    @1ec5
    Contributor

    @friedbunny, does #3183 address this issue?

  6. friedbunny commented on Jan 19, 2016

    @friedbunny
    ContributorAuthor

    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.

  7. friedbunny commented on Jan 20, 2016

    @friedbunny
    ContributorAuthor

    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.

  8. mikemorris commented on Feb 16, 2016

    @mikemorris
    Contributor

    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.
    screen shot 2016-02-16 at 6 17 16 pm

  9. modified the milestones: ios-v3.2.0, ios-v3.3.0 on Mar 3, 2016
  10. removed their assignment
    on Mar 5, 2016
  11. removed this from the ios-v3.3.0 milestone on Apr 8, 2016
  12. friedbunny commented on Apr 8, 2016

    @friedbunny
    ContributorAuthor

    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?

  13. boundsj commented on Apr 8, 2016

    @boundsj
    Contributor

    I agree -- let's close this.

  14. 1ec5 commented on Jun 21, 2016

    @1ec5
    Contributor

    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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiOStelemetry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions