maplibre / maplibre-navigation-ios

MapLibre Navigation SDK for iOS
Other
29 stars 27 forks source link

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

Closed BroodjeSteen closed 3 weeks ago

BroodjeSteen commented 4 months ago

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

Additional context

boldtrn commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 1 month ago

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 commented 3 weeks ago

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