FMX.TMSNativePDFLib

If you include the TMSNativePDFLib unit in Delphi 13.1 for the iOS Device 64-bit SDK 26.2, even a simple empty project will no longer compile; the following errors occur:

[DCC Error] E2597 ld: file too small (length=0) for architecture arm64
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001).

What can be done to resolve this?

Can you provide some more details? What happens when you click op the linker error? if it points towards a framework that is missing, you will need to add that framework to the iOS SDK.

Yes, I installed the frameworks manually according to the instructions. With Delphi 12, everything worked. We switched from Delphi 12.3 to Delphi 13.1 and had previously installed the iCL component V4.2.1.1. Here, our app crashed when calling pdf.BeginDocument. We then updated to the latest version of the iCL component V4.2.1.2. In the framework folder, for example, AVKit is now 0 bytes in size. So currently, there are several problems. The minimal example was:
procedure TForm3.Button1Click(Sender: TObject);
var
p : TTMSFMXNativePDFLib;
filename : string;
begin
filename := TPath.Combine(tPath.GetTempPath, 'test.pdf');
p := TTMSFMXNativePDFLib.create(nil);
p.PageSize := psA4;
p.BeginDocument(filename); // App crashes here
p.Free;
end;

You might have to remove and re-add the SDK, AVKit being 0 bytes in size doesn’t seem correct.

We are using Xcode 26.3 and added a new iOS SDK (26.2). We also removed the old SDK and re-added the new one, but the problem still persists.

Additionally, we copied the frameworks (such as AVKit, etc.) from our old Delphi 12 installation folder. However, the app still crashes at BeginDocument.

So, we are a step further now, since the linker error no longer occurs? We have received similar reports about errors with building pdf documents and are currently investigating this. Stay tuned

Hello,
Is there an update or a workaround available yet for the crash occurring during 
PDF generation? Our users are unable to use our app until this issue is resolved.

Hi,

We are still investigating. We’ll provide more details as soon as possible.

Hi,

we really need help for this topic. Can you give as an Update?

We are working on it

We have applied a fix and are currently rebuilding a new TMS iCL release. It should be available in the next hour. If something comes up, let me know

Thank you very much, now it works fine

1 Like