iOS Build Environment Help Center

libtool.exe command line can get above the Windows 8K limit

JF

Windows 11
Builder version: 3.54
iOS SDK version: Xcode 14.2
Unity version: 2022.2.1f1

libtool has a problem linking when the command line to do so is > 8K of characters, which is Windows' limit for a command line. The object files are all in the current directory, so there is no easy way to shorten the paths here.

https://pastebin.com/a1au17Np

To test it out, if I remove enough object files from that command line to get under 8K, and then run that libtool.exe command line manually, it will generate an output file, so that is what is tripping it up.

I'm not sure how I should work around this problem, is there perhaps a flag I can pass to the compiler to prevent this situation?

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty