Post

Replies

Boosts

Views

Activity

Reply to How to create private keys for developer certificates
How did you create new developer certificates? I'm not sure how you could create a certificate without creating a private key. The way I would create a new developer certificate is within Xcode: In the settings dialog, select the Accounts tab. Select an account, and then click the "Manage Certificates..." button. When a signing certificates window pops up, use the "+" button in the lower left corner to make a new one. The certificate and its private key should then appear in your default keychain.
Topic: Code Signing SubTopic: General Tags:
Jul ’23
Reply to Code signing crash when registering login item
I failed to mention that I'm getting that message about Apple Event entitlement for both the main app and the helper. What API are you using to register your login item? -[SMAppService registerAndReturnError:] Which process is crashing with the launch constraint violation? Now that you asked, I took a closer look at the crash report, and saw that what was crashing was the login item from a different build of my product. D'oh! I suppose it's something about the code signing being different. I had an App Store build installed, but for testing an update I was using a notarized build. Once I removed the old version, the crash stopped happening. However I still see the warning about Apple Events entitlements for both the main app and the login item.
Topic: Code Signing SubTopic: Entitlements Tags:
May ’23
Reply to SQLite and sandboxed app
Have you read the documentation on SQLite temporary files at https://www.sqlite.org/tempfiles.html? It seems self contradictory. Section 2.1 says that a rollback journal is in the same directory as the database file, while section 5 says that temporary files are elsewhere. Are you getting an error message telling you the path of the file that can't be opened?
Topic: Code Signing SubTopic: General Tags:
Apr ’23
Reply to AXIsProcessTrusted returns wrong value in osX Ventura 13.0+
Right. That’s why, when you change these values in System Settings, it offers to quit and relaunch the app. I just tried toggling a couple of the Privacy & Security > Accessibility switches, and it did not offer to quit and relaunch the apps. Anyway, that's why I said that I preferred using CGEventTapCreate, that allows me to detect a change in the permission without a relaunch.
Apr ’23
Reply to AXIsProcessTrusted returns wrong value in osX Ventura 13.0+
Quinn, when I said I have an “active” tap, I meant I need to be able to post events. I was aware of CGPreflightPostEventAccess and CGRequestPostEventAccess (probably heard about them in one of your other posts). (The Settings app displays that access as accessibility trust, though it may not be quite the same internally.) But in my experience, they don’t change their results “live”. That is, if I get a false result from CGPreflightPostEventAccess, then while my app runs, go to Settings and grant the permission, then go back to my app and check the result, it’s still false.
Apr ’23