iOS Build Environment Help Center

unknown argument '-Wl'

append delete Fernando

Windows version: Windows 11 Pro 23H2
Builder version: 3.64
iOS SDK version: 17.2
Link to buid log: https://pastebin.com/QgvBLP0C

Hello again master Pierre, another problem arose after a builder update, I was using 3.61 and everything was working perfectly, however, as soon as I updated to 3.64 this error appeared, would I have to migrate again? I'm waiting for a solution, thank you very much!

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

Flags such as "-Wl,-Wsomething" that appear in the Xcode project settings are normally *compiler* flags instructing it to forward the "something" flag to the linker (more specifically, these flags are interpreted by the compiler driver and kept aside until the linker is called). This is a bad practice that your Xcode project passes them to the linker because these flags should be written in the format expected by the linker directly (e.g. "-l something"). Xcode tolerates this bogus syntax but the LLVM linker does not. Does your project build if you use the Apple linker instead ?

append delete #2. Fernando

I'm sorry, but how do I do this? Or is there any way I can go back to 3.61? Thanks!

append delete #3. Fernando

Solved, I just unchecked the Use the LLVM linker, strange that in 3.61 it worked, but, that's okay!

append delete #4. Pierre-Marie Baty

Then it means there's one thing more I should do to the LLVM linker to better align it with the Apple one. Thanks for the feedback :-)

append delete #5. Fernando

I also discovered that the LLVM linker does not work when I use a plugin called FMETP 3.0, however, the build works with the LLVM linker unchecked.

Reply

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

There is no need to “register”, just enter the same name + password of your choice every time.

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

Moderators: Pierre-Marie Baty