skip to Main Content

Downloaded Xcode 12.2 Beta 3 and trying to compile my app. Getting the following linker error:

ld: unknown option: -no_adhoc_codesign

It looks like -Xlinker -no_adhoc_codesign is being added to the linker flags.

Where does this linker flag come from, and how do I remove it?

I searched and grepped the entire app, but couldn’t find this flag.

4

Answers


  1. Chosen as BEST ANSWER

    It looks like this comes from zld. Disabling zld fixed the issue for me.


  2. I had similar issue on V12 and I performed- Clean the project and pod install should resolve your issue.

    Login or Signup to reply.
  3. I had similar issue on released version of Xcode 12.2(12B45b). Resolved by updating "Command line Tools" setting in Xcode to use Xcode 12.2.
    Xcode Preferences Screenshot

    Login or Signup to reply.
  4. This problem can arise when build setting PRODUCT_NAME is empty for dependent library.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search