mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
859 stars 310 forks source link

[Bug]: Building project invalid archive returned #4693

Closed nnhubbard closed 1 month ago

nnhubbard commented 1 month ago

Mapbox Navigation SDK version

3.1.0

Steps to reproduce

Checkout this project and follow the instructions. Build in Xcode and get the errors:

Screenshot 2024-07-16 at 6 28 15 PM

Screenshot 2024-07-16 at 5 33 56 PM

Expected behavior

The project should build so that I can view the examples.

Actual behavior

Build errors

Is this a one-time issue or a repeatable issue?

repeatable

kried commented 1 month ago

Hi

Please try the latest v3.2.0 version. This version is open-source, so it downloads fewer binary dependencies.

Please make sure you configure your secret token to access the binary dependencies. Please try to clean up DerivedData and SPM cache (possibly ~/Library/Caches/org.swift.swiftpm, ~/Library/org.swift.swiftpm).

If all above did not help, please provide us with your Xcode version.

nnhubbard commented 1 month ago

Still didn't work. I continue to get a Package Resolution Failed message when adding the package:

Screenshot 2024-07-17 at 9 47 29 AM

Xcode 15.4

kzemin commented 1 month ago

Same here. Only have MapboxMaps - Exact @ 11.5.1 and MapboxDirections - Up To Next Major @ 2.14.0.

Screenshot 2024-07-17 at 7 07 44 PM Xcode 15.4

kried commented 1 month ago

Hi @cufapaez

Same here. Only have MapboxMaps - Exact @ 11.5.1 and MapboxDirections - Up To Next Major @ 2.14.0.

The error on your screenshot is completely different. It says about "multiple targets named MapboxDirections. You need to remove dependency on MapboxDirections v2.14.0 from mapbox-directions-swift. The MapboxNavigation v3.2.0 already contains the MapboxDirections package inside.

Screenshot 2024-07-18 at 10 24 33

Please follow our installation guide to specify dependencies.

kried commented 1 month ago

Hi @nnhubbard

Please try to install the latest v3.2.0 after you cleaned the SPM cache. Make sure you configure .netrc token.

Your problem seems to be similar to mapbox/mapbox-maps-ios#2206 or mapbox/mapbox-maps-ios#2156 This comment should be helpful https://github.com/mapbox/mapbox-maps-ios/issues/2156#issuecomment-2036414347.

nnhubbard commented 1 month ago

Hi @nnhubbard

Please try to install the latest v3.2.0 after you cleaned the SPM cache. Make sure you configure .netrc token.

Your problem seems to be similar to mapbox/mapbox-maps-ios#2206 or mapbox/mapbox-maps-ios#2156 This comment should be helpful mapbox/mapbox-maps-ios#2156 (comment).

That worked. Thank you!