Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Using Mapbox.framework 6.2.x with Xcode 12 #418

Open
julianrex opened this issue Sep 4, 2020 · 0 comments
Open

Using Mapbox.framework 6.2.x with Xcode 12 #418

julianrex opened this issue Sep 4, 2020 · 0 comments

Comments

@julianrex
Copy link
Contributor

julianrex commented Sep 4, 2020

Note: this issue is currently being updated for version 6.2.1

6.2.0

Maps SDK for iOS 6.2.0 adds initial support for iOS 14. Please see the release notes for changes; iOS 14 specific changes include:

Build Process

In order to use 6.2.0 with an Xcode 12, you'll need to amend your build process:

Carthage

Add an xcconfig file (example) that contains:

EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8
EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))

then run carthage update setting the XCODE_CONFIG_FILE environment variable:

XCODE_CONFIG_FILE=/path/to/Xcode-12.xcconfig carthage update --platform iOS --use-netrc

This solution is taken from the Carthage issue (thanks!). Please read for more details.

Cocoapods

Add two lines to podspec file to automatically exclude arm64 within build settings architecture:

  m.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 arm64e' }
  m.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 arm64e' }

then run pod update

This solution is taken from the Cocoapods PR. Please read for more details.

Direct download

No change.

@julianrex julianrex pinned this issue Sep 4, 2020
@mapbox mapbox deleted a comment from neelmistry94 Sep 5, 2020
@mapbox mapbox locked and limited conversation to collaborators Sep 5, 2020
@julianrex julianrex unpinned this issue Oct 1, 2020
@julianrex julianrex changed the title Using Mapbox.framework 6.2.0-beta.1 with Xcode 12 betas. Using Mapbox.framework 6.2.x with Xcode 12 Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant