Remove ENABLE_HARDENED_RUNTIME from the Debug configuration#381
Remove ENABLE_HARDENED_RUNTIME from the Debug configuration#381hannesa2 merged 1 commit intogitx:masterfrom
Conversation
As we shouldn't expect a random contributor to have a sign-ready Apple Developer account, and building with the Hardened Runtime enables requires signing, disable it on the Debug configuration (which is the default, anything made using `xcodebuild` will use Release.
|
Do you remember how much I love Xcode? I love it. The only way I've found to have it pick up on change in xcconfig files is to rename the file, restart it so it fails and yanks the (definitely unhelpful) caching it does, then rename the file back and restart once more. That seems to make it somehow pick up on new/changed values in xcconfig files. |
|
@tiennou Why is Also, does this make it no longer necessary to set up a Team ID and certificate? Was I solving it the wrong way in #376? |
|
Because I suspected that, were you to provide the correct info in the Dev config, you might also consider enabling the runtime, and I changed the read me to make it more obvious that you could do that. It does mean that, if your Schemes are set up correctly, any kind of build action triggered from Xcode will use the Debug configuration, and thus have any sort of "hard" signing disabled (hard, meaning you can't just "Sign local" or whatever, as per the rules on using the Hardened Runtime). So now there's some sort of a 3-way configuration going:
|
As we shouldn't expect a random contributor to have a sign-ready Apple Developer account, and building with the Hardened Runtime enables requires signing, disable it on the Debug configuration (which is the default, anything made using
xcodebuildwill use Release.Fixes the build for me, since I got the same error than this one but while trying to run in Xcode.