Xcode - Hardened Runtime is not enabled
It is also available in Capabilities section
Ok, I found the answer. Hardened Runtime setting available in the Build Settings tab in All build setting section.
Also, If your application containing multiple targets then you need to enable Hardened Runtime for all targets.
- Enable
Hardened Runtime
on theSigning & Capabilities
screen to cover the app and frameworks. - Add
--deep
flag toSigning - Other Code Signing Flags
on theBuild Settings
screen to cover the direct nested applications inside the frameworks. Add a new run script phase on the
Build Phases
screen to cover the indirect nested applications inside the frameworks:codesign --force --options=runtime \ --sign "${EXPANDED_CODE_SIGN_IDENTITY_NAME}" \ "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents/Frameworks/<PATH_TO_THE_APPLICATION>"