Jump to content
ToddFrankson

Linker errors all of a sudden....IOS

Recommended Posts

So, May patch....

 

Tried to compile an IOS app that already ran fine.  The only change was setting it to run on IOS 15.0 minimum...

 

Syntax check fine.

 

Go to run it on the phone, error count goes up and up like @Dave Nottage reported.

 

Anyone know why?  I  am down currently for anything IOS

Share this post


Link to post
6 hours ago, ToddFrankson said:

Anyone know why?

It has nothing to do with the May patch - the problem may have existed even before Delphi 12.

 

Is there a reason why you need to set the min version above 13?

Share this post


Link to post
2 hours ago, Dave Nottage said:

may have existed even before Delphi 12.

Correction - as per the report, the problem started with Delphi 12.2. It was working before that.

Share this post


Link to post
15 hours ago, Dave Nottage said:

It has nothing to do with the May patch - the problem may have existed even before Delphi 12.

 

Is there a reason why you need to set the min version above 13?

My apps were set at 11.  After the latest IOS Update, not a single one will open.  I was trying to see if they would run with the minimum OS set higher.

 

I also believe that for Apple Store submission, the minimum needs to be set higher than 13.

 

Edited by ToddFrankson

Share this post


Link to post
1 hour ago, ToddFrankson said:

After the latest IOS Update, not a single one will open

I suspect there's some other issue causing that.

1 hour ago, ToddFrankson said:

I also believe that for Apple Store submission, the minimum needs to be set higher than 13.

The App Store requirement relates to the versions of Xcode and iOS SDK that need to built against, not the Minimum iOS Version set in the linking options.

Share this post


Link to post
20 minutes ago, Dave Nottage said:

I suspect there's some other issue causing that.

 

Even a blank new Multi-Platform Project?  Splash screen shows, then app closes

Share this post


Link to post
7 hours ago, ToddFrankson said:

Even a blank new Multi-Platform Project?  Splash screen shows, then app closes

If it were being caused by the May patch (which contains no changes for iOS development), I'd expect to see a lot more reports of it.

 

What is your environment (aside from Delphi 12.3, since you mention the May patch), i.e. Xcode version, iOS SDK version, PAServer version?

I'm using Xcode 16.4, iOS 18.2 SDK, PAServer 14.3.14.2.

Share this post


Link to post
9 minutes ago, ToddFrankson said:

PAServer 14.3.14.5

macOS PAServer version? It's still 14.3.14.2 for the May patch. At least it is for me.

11 minutes ago, ToddFrankson said:

IOS 18.5 SDK

A blank application built against this SDK works OK for me...

12 minutes ago, ToddFrankson said:

IOS 18.5

..for a device with this iOS version.

Share this post


Link to post
22 minutes ago, Dave Nottage said:

macOS PAServer version? It's still 14.3.14.2 for the May patch. At least it is for me.

 

 

Screenshot 2025-06-03 at 8.00.37 AM.png

Share this post


Link to post
9 hours ago, ToddFrankson said:

PAServer 14.3.14.5

I've since remembered that the new PAServer was actually in the patch folder. I've installed it now, but same result: the apps work.

Share this post


Link to post

Uninstalled the patch, reinstalled the patch.  I can now get IOS apps working.....  IOS simulator still gives me an error though  I'll get the message tomorrow.

Share this post


Link to post

So I get this on any pre existing App for IOS Simulator (iphone16 IOS 18.4)

[DCC Error] E2597 ld: warning: directory not found for option '-LComponent'
[DCC Fatal Error] F2588 Linker error code: 3221225477 ($c0000005)

 

And this for any new blank project I try to run on the simulator

  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(intercept_dispatch.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(objc_dispatch.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(rtti_raw_invoke_arm64.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(thunk_blocks.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(objc_blocks.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(thunk_helpers.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(so_init.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(delphi_support.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(cxa_support_c.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: warning: object file (c:\program files (x86)\embarcadero\studio\23.0\lib\iOSSimARM64\Release\librtlhelper.a(debug_support.o)) was built for newer iOS Simulator version (14.0) than being linked (11.0)
  ld: file not found: /System/Library/PrivateFrameworks/DocumentManager.framework/DocumentManager for architecture arm64
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

 

Nothing else

 

I cleared the Cache-dir-...  on the Mac and on my local machine.  Now I can deploy new blank projects to IOS Simulator, but the first project still gives the same error...

Share this post


Link to post
35 minutes ago, ToddFrankson said:

Now I can deploy new blank projects to IOS Simulator, but the first project still gives the same error...

Exactly the same error? i.e.  ld: file not found: /System/Library/PrivateFrameworks/DocumentManager.framework/DocumentManager for architecture arm64

 

If so, the SDK still has not imported properly. You may need to delete the SDK folder, then remove the cache-dir- folders, then re-import. If the folder still doesn't import there's some issue at play I've not seen before.

Share this post


Link to post
16 minutes ago, Dave Nottage said:

Exactly the same error? i.e.  ld: file not found: /System/Library/PrivateFrameworks/DocumentManager.framework/DocumentManager for architecture arm64

 

If so, the SDK still has not imported properly. You may need to delete the SDK folder, then remove the cache-dir- folders, then re-import. If the folder still doesn't import there's some issue at play I've not seen before.

Yup.    I get it still on a few projects I haven't messed with in a few months.  It seems that if I change the SDK (IOS Simulator) back and forth a few times, from 18.4 to 18.5, it goes away in some cases.

Share this post


Link to post
1 minute ago, ToddFrankson said:

It seems that if I change the SDK (IOS Simulator) back and forth a few times, from 18.4 to 18.5, it goes away in some cases.

It's easy enough to check whether or not the file exists in each case - it's not like the linker randomly chooses whether to believe it does.

 

In. my case, the file that the linker is referring to is in: C:\Users\dave\Documents\Embarcadero\Studio\SDKs\iPhoneSimulator18.5.sdk\System\Library\PrivateFrameworks\DocumentManager.framework

Share this post


Link to post

BTW- Where locally does Delphi Store the  /System/Library/PrivateFrameworks/DocumentManager.framework/DocumentManager path and the Other linker paths?

Share this post


Link to post
18 minutes ago, Dave Nottage said:

It's easy enough to check whether or not the file exists in each case - it's not like the linker randomly chooses whether to believe it does.

 

In. my case, the file that the linker is referring to is in: C:\Users\dave\Documents\Embarcadero\Studio\SDKs\iPhoneSimulator18.5.sdk\System\Library\PrivateFrameworks\DocumentManager.framework

Should it exist in the Cache-Dir-.... Directory too?  

Share this post


Link to post
11 hours ago, ToddFrankson said:

Should it exist in the Cache-Dir-.... Directory too?  

Not for the purposes of compiling - the SDK files in the SDKs folder on the Windows machine are what is used

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

×
OSZAR »