You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't read or edit values on macOS with hardened runtime enabled #3
Describe the bug
I tried using the example and it works on Mac in debug mode. But when the app is signed and notarized the example isn't working anymore.
To Reproduce
Steps to reproduce the behavior:
Clone the example
Enable Hardened Runtime
Build, Sign and Notarize the app
Expected behavior
I should be able to read/write values.
Desktop:
OS: macOS 14.3.1
Additional context
I added the Entitlements to both Debug and Release. They look like this:
Seems that the hardening is only done during the signing process of your app. Can you please try to configure it like if you want to release it (with a dev team etc.), then to run flutter build macos and to run the produced build ?
Side question : does it work with the other packages (flutter_secure_storage and biometric_storage) ?
Running the flutter app in release mode with a dev team works without issue. But actually releasing it with signing and notarizing doesn't work.
flutter_secure_storage has the same problems. I didn't test biometric_storage yet.
I also tried to find documentation on how Keychain is affected by the Hardened Runtime, but I couldn't find any documentation by Apple on this topic.
Activity
Skyost commentedon Mar 5, 2024
Did you follow the steps here ?
jdk-21 commentedon Mar 5, 2024
Yes, I did. I didn't enable any additional entitlements as they don't seem to be relevant for this package. But maybe that's not the case.
Skyost commentedon Mar 7, 2024
Well, you can try and tell me if it works 🙂
jdk-21 commentedon Mar 7, 2024
I tried it and added every entitlement possible. But it still doesn't work
Skyost commentedon Mar 10, 2024
Seems that the hardening is only done during the signing process of your app. Can you please try to configure it like if you want to release it (with a dev team etc.), then to run
flutter build macosand to run the produced build ?Side question : does it work with the other packages (
flutter_secure_storageandbiometric_storage) ?jdk-21 commentedon Mar 10, 2024
Running the flutter app in release mode with a dev team works without issue. But actually releasing it with signing and notarizing doesn't work.
flutter_secure_storage has the same problems. I didn't test biometric_storage yet.
I also tried to find documentation on how Keychain is affected by the Hardened Runtime, but I couldn't find any documentation by Apple on this topic.