iOS Build Environment Help Center

Delete

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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[1]: unknown argument '-Wl'

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 ?

Moderators: Pierre-Marie Baty