ios-maps-sdk
ios-maps-sdk copied to clipboard
GoogleMaps SPM integration: "MTLDebugDevice newLibraryWithFile:error:"
Environment details
- Xcode 15.2
- iPhone Simulator with iOS 17.2 and 17.4
- GoogleMaps 8.4.0 using SPM
Our project had GoogleMaps 6.0.1 using Carthage, but we decided to migrate to SPM.
binary "https://dl.google.com/geosdk/GoogleMaps.json" == 6.0.1-beta
Steps to reproduce
- Remove old Carthage XCFrameworks
- Follow official guide for SPM integration
- Run project
- It happens a run time error and app crashes with the message
-[MTLDebugDevice newLibraryWithFile:error:]:1860: failed assertion `filepath must not be nil.'
We also tried disabling Metal Renderer with the code below. Using the old renderer, the crash does not happen but the Maps in the app just become blank.
GMSServices.setMetalRendererEnabled(false)