Paul Reeder
Paul Reeder

Reputation: 159

Cannot install mapbox ios sdk 10.0.0-beta.15 via SPM

Followed the instructions for installing the mapbox Maps SDK at https://docs.mapbox.com/ios/beta/maps/guides/install/ using Swift Package Manager, but it failed with the error:

Showing All Messages artifact of binary target 'MapboxCommon' failed extraction: The operation couldn’t be completed. (TSCBasic.StringError error 1.)

Showing All Messages artifact of binary target 'MapboxCoreMaps' failed extraction: The operation couldn’t be completed. (TSCBasic.StringError error 1.)

My first attempt said that the hash of the Mapbox Core Maps was incorrect.

Upvotes: 2

Views: 1976

Answers (3)

Karthick Ramesh
Karthick Ramesh

Reputation: 1486

In My case, I was trying to move from Cocoapods to Swift Package Manager. So I did try to remove the pod changes w.r.t Mapbox SDK and forgot to give pod install. So I realised that POD Dependencies have to be fetched and updated properly for Swift Package Manager to work properly. So give 'pod install' / 'pod update' and then try to add with swift package manager.

Upvotes: 0

Mostafa Mahmoud
Mostafa Mahmoud

Reputation: 514

rm -rf ~/Library/Developer/Xcode/DerivedData/*

Upvotes: 2

fabjeck
fabjeck

Reputation: 71

Had the same issue: Deleting the contents of the DerivedData folder like mentioned in Mapbox Maps SDK Installation Guide fixed it.

DerivedData folder can be accessed via Xcode -> Preferences -> Locations. Here some instructions if needed...

Upvotes: 6

Related Questions