I have a command-line tool built from a swift package with an executable target that I need to include in a macOS app. When I attempt to notarize the macOS app, I get an error about the command-line tool needing hardened runtime.
If I run the deprecated
swift package generate-xcodeproj to build an Xcode project, the project is automatically set up to build with hardened runtime. However, it appears that if you edit Package.swift you need to regenerate the Xcode project. Is there any way to build with hardened runtime without Xcode? I've seen a few examples of including build flags using
-Xlinker but it's not clear how you'd use those to set