JohanDegraeve / xdripswift

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

Workaround for Xcode 16; new LLU `la` subdomain and 4.11 Account-Id header #554

Closed gui-dos closed 1 month ago

gui-dos commented 1 month 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/fec1005899893ddf20e36675f3aad96547e8c99c/xdrip/BluetoothTransmitter/CGM/Libre/Utilities/LibreNFC.swift#L462

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

It was reported as successful on FB:

450545818_2979998748820013_6748091525888983595_n