mapbox / ios-sdk-examples

Live example code for the Mapbox iOS SDK
https://www.mapbox.com/ios-sdk/examples/
Other
95 stars 35 forks source link

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

Open roblabs opened 3 years ago

roblabs commented 3 years ago

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

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