Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Xcode 12.5 Beta 2 fails to compile MMEEventsManager.m, 'TARGET_OS_MACOS' is not defined #424

@roblabs

Description

@roblabs

While testing the Examples app in this repo with Xcode 12.5 Beta 2 there is a blocking compiler error related to MMEEventsManager.m.

  • Compiler error occurs with Xcode Version 12.5 beta 2 (12E5234g), released Feb 16, 2021 using Examples.xcworkspace
    • Issue occurs in Version 12.5 beta 3 (12E5244e) released on Mar 2, 2021.
  • The demo app in Examples.xcworkspace works as expected with Xcode Version 12.4 (12D4e)
  • The Podfile.lock shows that the MME version is MapboxMobileEvents (0.10.5), so this may be fixed in MapboxMobileEvents after this version.

The fix may be as simple as upgrading the mapbox/mapbox-events-ios in the Podfile. Change would have to occur in mapbox/mapbox-gl-native-ios as the Podfile only points to the 6.3 release for iOS, and the MME is not configurable via the Podfile.


Error report from Xcode 12.5 Beta 2

Showing All Issues
~/git/mapbox/ios-sdk-examples/Pods/MapboxMobileEvents/Sources/MapboxMobileEvents/MMEEventsManager.m:3:5: 'TARGET_OS_MACOS' is not defined, evaluates to 0


Podfile.lock contents

PODS:
  - Mapbox-iOS-SDK (6.3.0):
    - MapboxMobileEvents (~> 0.10.4)
  - MapboxMobileEvents (0.10.5)
  - SwiftLint (0.41.0)

DEPENDENCIES:
  - Mapbox-iOS-SDK (= 6.3.0)
  - SwiftLint (~> 0.29)

SPEC REPOS:
  trunk:
    - Mapbox-iOS-SDK
    - MapboxMobileEvents
    - SwiftLint

SPEC CHECKSUMS:
  Mapbox-iOS-SDK: 2563ed87ead6ec08f1c2090873977b8a7be335a8
  MapboxMobileEvents: 7f6fb7fb0360302f524d198d36ccec3a0beae523
  SwiftLint: c585ebd615d9520d7fbdbe151f527977b0534f1e

PODFILE CHECKSUM: 3fb0eea64d7fe606fd4edb9f5b121e174bebc01a

COCOAPODS: 1.10.1

readme-c78bc4e7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions