I think the exception is coming from RTL2 code, it matches the formatexception.
On Toffee ToDouble calls TryParseNumber and thats what I copied . I have to run on the watch because I cant repro on my mac. Its also the binary you ship.
var Formatter := new NSNumberFormatter;
Formatter.numberStyle := NSNumberFormatterStyle.NSNumberFormatterDecimalStyle;
Formatter.locale := new NSLocale withLocaleIdentifier('en_CA');
result := Formatter.numberFromString(value).doubleValue;
This does sound a bitness bug for arm64_32, yeah. can you do me a favor and run the following code for watchOS simulator, watchOS device as armv7k and watchOS arm64_32? And can you also enable the “Generate IR” option, and zip up[ and post the generated .ll for all architectures (just zip up the entire ./bin folder for the lib)?
I tried with the lines of code above and that worked but my library gives me a slightly different message
WatchKit Extension[1031:1257100] *** Terminating app due to uncaught exception ‘Exception’, reason: 'Invalid double value ‘1.28’ for locale '
It’s calling into JsonDeserializer and eventually calling Convert.ToDouble. When you said should be fixed compiler side are there other things I need ?
Oh, actually the build you grabed mighty not have bneen a full rebuiltd, and thus not have RTL2 rebuilt with the latest compiler. i’ll initiate a full rebuild.
Yeah, sorry, I ran into some other issues exposed by the rebuild due to unrelated compiler changes from earlier in the week. (it got more stricter with mixing Island and Cocoa objects in generics). Glad I ran into those today, and not on full rebuild day tomorrow .
the build thats running now has been long enough so I think it got past any such issues, and shod succeeded in about 30m or so.