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
It looks like this comes from zld. Disabling zld fixed the issue for me.
I had similar issue on V12 and I performed- Clean the project and pod install should resolve your issue.
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
This problem can arise when build setting PRODUCT_NAME is empty for dependent library.