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

dyld Library not loaded: @rpath/Mapbox.framework/Mapbox thrown by MapboxNavigation #28

Closed
BroodjeSteen opened this issue Feb 22, 2024 · 6 comments

Comments

@BroodjeSteen
Copy link

BroodjeSteen commented Feb 22, 2024

Hello, I am building an application with React Native and I'm trying to build a custom component with the Maplibre Navigation SDK. The problem I'm having lies directly in the install of the additional frameworks downloaded with Carthage. Each of the downloaded frameworks works and the application loads after building, except when I add the MapboxNavigation framework to the "Frameworks, Libraries and Embedded Content" in XCode.

Steps to Trigger Behavior

  1. Follow install steps in README.md

Expected Behavior

Application should load after install without using the SDK.

Actual Behavior

Application throws error when loading the MapboxNavigation framework.

Screenshots (if applicable)

Screenshot 2024-02-22 at 16 26 15
Screenshot 2024-02-22 at 16 30 44
These are the downloaded frameworks. Might I be missing a Mapbox.xcframework?

Version(s) affected

  • OS version: iOS 17.2
  • Device type: iPhone 15 Pro
  • Emulator/ Simulator: yes
  • Development OS: macOS 14.1.1
  • maplibre-navigation-ios Version 2.0.0
  • MapLibre GL version 6.0.0

Additional context

@boldtrn
Copy link
Collaborator

boldtrn commented Mar 2, 2024

Once #24 is merged, we don't need Carthage anymore.

I would recommend to use the current master of this repository. That way you get access to the latest Maplibre version 6.

@BroodjeSteen
Copy link
Author

BroodjeSteen commented Mar 4, 2024

I am using the current master. Might it be that I am using a too recent version of XCode so that the frameworks don't build right? I'm currently using XCode 15 though the release page of this repository says to use XCode 13.

@mindthefish
Copy link
Contributor

mindthefish commented Mar 11, 2024

Did you add MapLibre as SPM dependency like described in the step 4 in the README? This should add MapLibre to the Frameworks list of your application.

@BroodjeSteen
Copy link
Author

I have followed all the steps from the README, I can also see that the SPM dependency works by importing MapLibre in a Swift file..

@michaelkirk
Copy link
Collaborator

Are you still having issues @BroodjeSteen? The SPM install instructions have been updated: https://github.com/maplibre/maplibre-navigation-ios?tab=readme-ov-file#getting-started

@BroodjeSteen
Copy link
Author

Everything is working great since using the Swift Package. Thank you very much.

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

4 participants