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.

Initializing UIApplication with an expression of incompatible type UIApplicationDelegate #5992

Closed

Description

@1ec5

MGLStyleLayerTests erroneously assigns the application delegate to a local variable of type UIApplication, resulting in this compiler warning and a potential uncaught exception at runtime:

/path/to/mapbox-gl-native/platform/darwin/test/MGLStyleLayerTests.m
/path/to/mapbox-gl-native/platform/darwin/test/MGLStyleLayerTests.m:8:20: Initializing 'UIApplication *__strong' with an expression of incompatible type 'id<UIApplicationDelegate> _Nullable'

/cc @frederoni

Activity

  1. added
    iOS
    macOS
    on Aug 13, 2016
  2. added this to the ios-v3.4.0 milestone on Aug 13, 2016
  3. added a commit that references this issue on Aug 13, 2016
    8ba435e
  4. self-assigned this
    on Aug 13, 2016
  5. assigned and unassigned on Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOSmacOStests

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions