Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue on Apple M2 chip MacBook, which uses arm64 #234

Open
MuhammadHassanShah opened this issue May 9, 2024 · 6 comments
Open

issue on Apple M2 chip MacBook, which uses arm64 #234

MuhammadHassanShah opened this issue May 9, 2024 · 6 comments

Comments

@MuhammadHassanShah
Copy link

Failed to build module 'MapboxSearch' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug

Screenshot 2024-05-09 at 11 21 04 AM
@MuhammadHassanShah MuhammadHassanShah changed the title Apple M2 chip MacBook, which uses arm64 issue on Apple M2 chip MacBook, which uses arm64 May 9, 2024
@MuhammadHassanShah
Copy link
Author

@zugaldia @mourner @sbma44 @Gionfriddo please suggest us solution

@aokj4ck
Copy link
Contributor

aokj4ck commented May 14, 2024

@MuhammadHassanShah what version of the SDK are you currently using?

If you are using a v2 release then please update to our latest release v2.0.3 and let me know if you encounter any issues. https://github.com/mapbox/mapbox-search-ios/releases/tag/v2.0.3

@rgmyyw
Copy link

rgmyyw commented May 24, 2024

this problem persists

  pod 'MapboxSearch', "2.0.3"
  pod 'MapboxSearchUI', '2.0.3'
  pod 'MapboxCommon', '24.3.1'
  pod 'MapboxMaps', '11.3.0'
  pod 'MapboxStatic.swift', '0.12.0'
  pod 'MapboxDirections' ,'2.7.0'

Xcode: Xcode15.4 15F31d

@aokj4ck
Copy link
Contributor

aokj4ck commented May 28, 2024

@MuhammadHassanShah @rgmyyw I am working on resolving this for you.

@aokj4ck
Copy link
Contributor

aokj4ck commented May 29, 2024

@MuhammadHassanShah @rgmyyw Are you able to update to MapboxCommon 24.4.0, MapboxSearch/SearchUI 2.1.0, and MapboxMaps 11.4.0?

This can be fixed in MapboxSearch version 2.1.0 by adding pod 'MapboxCoreSearch', '2.1.0'. I am working on correcting the dependencies in the next release so that this extra pod is imported automatically.

  pod "MapboxSearch", '2.1.0'
  pod "MapboxSearchUI", '2.1.0'
  pod "MapboxCoreSearch", '2.1.0'  # NEW

  pod 'MapboxCommon', '24.4.0'
  pod 'MapboxMaps', '11.4.0'
  pod 'MapboxStatic.swift', '0.12.0'
  pod 'MapboxDirections' ,'2.7.0'

@aokj4ck
Copy link
Contributor

aokj4ck commented May 29, 2024

@MuhammadHassanShah @rgmyyw Previously I shared a work-around by importing an additional pod. That workaround is no longer necessary when you upgrade to MapboxSearch v2.1.1 / MapboxCommon 24.4 / MapboxMaps 11.4. I'm sorry for the disruption and please let me know if this resolves the issue for you in this thread, and open new issues for any other problem you encounter.

Release v2.1.1: https://github.com/mapbox/mapbox-search-ios/releases/tag/v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants