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

Viewed 1211

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.

2 Answers

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...

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