JohanDegraeve / xdripswift

xdrip for iOS, written in Swift
GNU General Public License v3.0
316 stars 310 forks source link

Workaround for compiling with Xcode 16 beta. #547

Closed gui-dos closed 5 days ago

gui-dos commented 1 week ago

With the beta of Xcode 16 compilation fails by reporting the error “The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.” regarding the line

https://github.com/JohanDegraeve/xdripswift/blob/b02cd8275c6643cab128f92fe90f48ad05e22ab5/xdrip/BluetoothTransmitter/CGM/Libre/Utilities/LibreNFC.swift#L462

Simply replacing the final + (error?.localizedDescription ?? "none”) with error.debugDescription makes xDrip compilable again.