BytePusher 0 Posted February 2 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
Dave Nottage 590 Posted February 2 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
BytePusher 0 Posted February 3 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. Share this post Link to post
Dave Nottage 590 Posted February 3 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
BytePusher 0 Posted February 3 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
Dave Nottage 590 Posted February 3 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
MFrostholm 0 Posted 12 hours ago I am having the excact same problem. Delphi 12.2 - New blank multi-device app The application builds without problems. But if I change the "Minimum iOS version supported" to 15.4 the project won't build. It's the same warning as BytePusher, and the errors just counting up. Mac is M1 OS 15.3.2, Xcode 16.2 Share this post Link to post
Patrick PREMARTIN 111 Posted 7 hours ago On 2/3/2025 at 11:14 AM, BytePusher said: Is there a way to have the compiler message written to a file in order to localize the error? Use the contextual menu in the message tab "construction" or "output". You should find a "Select all / Copy" and a "Save in file" option. (if you share it, check if you have any password used for Android or iOS signature) Share this post Link to post
Patrick PREMARTIN 111 Posted 7 hours ago 5 hours ago, MFrostholm said: I am having the excact same problem. Delphi 12.2 - New blank multi-device app The application builds without problems. But if I change the "Minimum iOS version supported" to 15.4 the project won't build. It's the same warning as BytePusher, and the errors just counting up. Mac is M1 OS 15.3.2, Xcode 16.2 According to https://docwiki.embarcadero.com/PlatformStatus/en/Main_Page if you use a 12.x release you cannot go under iOS 16. If you want to target iOS 15, use the 11.3 Alexandria and try to add latest iOS SDK as maximal value. Depending on what you use in your project and what Embarcadero uses in the RTL / FMX, the project needs some APIs and libraries. Changing the minimal SDK Version value don't impact that. Share this post Link to post
MFrostholm 0 Posted 6 hours ago 6 minutes ago, Patrick PREMARTIN said: According to https://docwiki.embarcadero.com/PlatformStatus/en/Main_Page if you use a 12.x release you cannot go under iOS 16. If you want to target iOS 15, use the 11.3 Alexandria and try to add latest iOS SDK as maximal value. Depending on what you use in your project and what Embarcadero uses in the RTL / FMX, the project needs some APIs and libraries. Changing the minimal SDK Version value don't impact that. I am not intending to target iOS 15. A blank Delphi multidevice project defaults to iOS 11 in "Minimum iOS version supported", but no matter what higher version I use, the project won't compile. Maybe I am doing something completely wrong, but it seems that something is broken. I have also tried targeting iOS 18.2. Share this post Link to post
Patrick PREMARTIN 111 Posted 6 hours ago (edited) If you don't target iOS 15, why do you change the minimal iOS SDK version number ? Do you have any error except the one from original subject of this topic ? What does your app ? Anything needing a specific framework ? Edited 6 hours ago by Patrick PREMARTIN Share this post Link to post
MFrostholm 0 Posted 6 hours ago (edited) Sometimes you just need someone to tell you you're an idiot 🙂 Thank you Patrick! I mean it. It all came down to my missing knowledge. I was trying to link openssl in the my app, but when I built openssl I didn't change target ios. Now I've rebuilt openssl, and the error is gone. (Some other errors came up, but that is for another day) Thanks again Patrick. Sometimes I just need a kick in the plums 😉 Edited 6 hours ago by MFrostholm Share this post Link to post
Patrick PREMARTIN 111 Posted 5 hours ago I didn't say that (neither thought it). 😉 The errors are not clear and understanding the toolchains for Android and iOS is not easy, even when we use them often. Share this post Link to post