Reputation: 159
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
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
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