ios-maps-sdk icon indicating copy to clipboard operation
ios-maps-sdk copied to clipboard

GoogleMaps SPM integration: "MTLDebugDevice newLibraryWithFile:error:"

Open NicolasEymael opened this issue 11 months ago • 3 comments

Environment details

  1. Xcode 15.2
  2. iPhone Simulator with iOS 17.2 and 17.4
  3. 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

  1. Remove old Carthage XCFrameworks
  2. Follow official guide for SPM integration
  3. Run project
  4. 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)

NicolasEymael avatar Mar 05 '24 14:03 NicolasEymael