mapbox / mapbox/mapbox-annotation-extension

Demo application builds for device but fails to build for iOS Simulator on MacBook Pro M1

Open
#77 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
11
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hi, I cloned the mapbox-annotation-extension repository and built the annotationapp demo in Xcode on my MacBook Pro M1 for running on a physical device and that works; the "annotationapp" demo application builds and runs as it should.

Unfortunately, when I instead try to run the demo application in iOS Simulator in Xcode the same machine, I get a build time error:

ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/erikn/src/mapbox-annotation-extension/Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Mapbox' for architecture arm64

Critically, we are having the same issue with an app that we are creating where we are using mapbox-annotation-extension, in that our app cannot be built for running in iOS Simulator on MacBook Pro M1 because of the error with MapboxAnnotationExtension. And that is why I decided to see if the demo application would run in the simulator.

I have Googled the issue extensively and tried a bunch of things, none of which helps, and I believe that there is something, which I don't quite understand what exactly, that needs to be fixed about the MapboxAnnotationExtension so that apps that use it, including the "annotationapp" demo application, are able to build for and run in iOS Simulator on MacBook Pro M1 computers.

Hope you guys have a chance to look into this as it is causing quite a bit of trouble not being able to run applications that use this extension in the iOS Simulator on MacBook Pro M1 computers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the annotationapp demo build in Xcode for an iOS Simulator on an M1 Mac, then inspect how the linked Mapbox.framework is built and selected. Done means the demo application and apps using MapboxAnnotationExtension build and run in the simulator without the architecture-linking error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.