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.

Crash on launch on macOS 10.11–10.14 #16396

Closed

Description

@1ec5

macOS map SDK v0.15.0 crashes on launch on macOS 10.11–10.14 because it was built on macOS 10.15 and has no explicit minimum deployment target. Examples of this crash include mapbox/mapbox-gl-native-ios#195 and mapbox/mapbox-gl-native-ios#205.

Running cmake -G Xcode . -DCMAKE_SYSTEM_NAME=Darwin results in an Xcode project whose targets have the MACOSX_DEPLOYMENT_TARGET build setting unset. This causes the build products to default to a minimum deployment target that is the newest macOS SDK version supported by the current version of Xcode. As on iOS in #16241, the minimum deployment target should instead be the oldest version supported by the macOS map SDK, which is macOS 10.11.0.

This isn’t a problem on iOS, because something causes this code to set the minimum deployment target:

if(NOT DEFINED IOS_DEPLOYMENT_TARGET)
set(IOS_DEPLOYMENT_TARGET "9.0")
endif()

But similar code in the macOS configuration doesn’t run:

if(NOT DEFINED MACOSX_DEPLOYMENT_TARGET)
set(MACOSX_DEPLOYMENT_TARGET "10.11")
endif()

/cc @mapbox/maps-ios @mapbox/gl-native

Activity

  1. added
    macOS
    on Apr 14, 2020
  2. changed the title [-]Restore support for macOS 10.11–10.14[/-] [+]Crash on launch on macOS 10.11–10.14[/+] on Apr 14, 2020
  3. 1ec5 commented on Apr 18, 2020

    @1ec5
    ContributorAuthor

    I wonder if it’s relevant that MACOSX_DEPLOYMENT_TARGET is also a CMake environment variable, unlike IOS_DEPLOYMENT_TARGET.

  4. self-assigned this
    on Apr 18, 2020
  5. added this to the release-water milestone on Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildcrashmacOS

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions