2

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.

Paul Reeder
  • 139
  • 6

3 Answers3

6

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

fabjeck
  • 61
  • 5
2
rm -rf ~/Library/Developer/Xcode/DerivedData/*
Mostafa Mahmoud
  • 394
  • 4
  • 9
0

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.

Karthick Ramesh
  • 1,451
  • 20
  • 30