Jump to content
BytePusher

iOS problem since switching from Delphi 12.1 to 12.2

Recommended Posts

Hello everyone,
I'm currently trying to convert my mobile project from Delphi 12.1 to 12.2.
It works correct under Win32 and Android64 and iOS simulator.

On iOS Release I get the following compiler message:

[DCC error] E2597 ID: warning: alignment(4) of atom ‘_ZTRN3FmxMemo5Types19TSelectionPointTypeE’ is too small and may result in unaligned pointers

 

After the compiler message, errors are continuously counted up until the compiler eventually freezes at around 280,000 errors.
Does anyone have a tip for me as to what the cause might be?
Thank you in advance.

Share this post


Link to post
5 hours ago, BytePusher said:

Does anyone have a tip for me as to what the cause might be?

Please include at least the first error, instead of warning.

Share this post


Link to post

Hello Dave, thank you for your feedback.
That's actually the problem, that there is no precise error message.

The linker warning appears and then the error message counter runs up until the IDE freezes.

Unfortunately, a controlled cancellation using the "Abbrechen" button is not possible.
Attached is a screenshot of the compiler's output.
Thank you in advance for any help.

 

Screenshot.png

Share this post


Link to post
1 minute ago, BytePusher said:

Thank you in advance for any help.

If this issue does not happen for a blank app, I suggest indicating what dependencies the app has, e.g. whether it uses any 3rd party code (and what, exactly), or any frameworks from the iOS SDK aside from those that have imports in the Delphi source (iOSapi.xxxx files in the source\rtl\ios folder of the Delphi installation)

Share this post


Link to post

I've already tried removing frameworks but without success.

Is there a way to have the compiler message written to a file in order to localize the error?

I use XCode 15.4 and iOS 17.5 SDK on the Mac (Sanoma 14.5).

The iOS device is an iPhone 14 Pro with iOS17.6.1. Could it be that the versions are too old for Delphi 12.2?

The iOS simulator is version 17.0.1 and the project can be compiled and executed there.

The project can also be compiled in debug mode, but not executed.

If I create a completely new app, it is compiled and executed.

Share this post


Link to post
8 hours ago, BytePusher said:

I've already tried removing frameworks but without success

Which ones, and how did you "remove" them?

8 hours ago, BytePusher said:

The iOS device is an iPhone 14 Pro with iOS17.6.1. Could it be that the versions are too old for Delphi 12.2?

Being able to compile is not relevant to what the device has.

8 hours ago, BytePusher said:

The project can also be compiled in debug mode, but not executed.

So it's just not compiling in Release mode?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×