Hello.
Users of my application began to complain about an error in the application after updating to iOS 17 (screenshot attached). The server is written in Delphi 7 and sends data in CP1251 encoding (it is not possible to change this). Before the iOS 17 update, the application worked and no errors occurred.
The exception occurs in the code section of the idGlobal.pas module:
else
FMaxCharSize := LocaleCharsFromUnicode(FCodePage, FWCharToMBFlags, @cValue[0], 2, nil, 0, nil, nil); //returns less than 1 and then throws an exception RSInvalidCodePage
if FMaxCharSize < 1 then begin
raise EIdException.CreateResFmt(@RSInvalidCodePage, [FCodePage]);
end;
From the information that I was able to find, a relatively similar problem was discussed here:
https://youtrack.jetbrains.com/issue/KT-59124/kmm-production-sample-iOS-app-crashes-after-start-on-iOS17-Beta
If I understand correctly, the problem was solved by updating XCode to 15 Beta 6 and using the current version of the iOS SDK.
Tell me, please, has anyone encountered this problem? Are there any solutions (I can’t update to the latest versions of XCode and iOS SDK)?