Adding keychain sharing on a MacOS test app causes "Message from debugger: no such process."

Hello,

I am hoping to test iOS-style keychain sharing on my MacOS test app via

kSecAttrAccessGroup
kSecUseDataProtectionKeychain
attributes

I understand that I first need to enable keychain sharing under "Signing & Capabilities", which also creates a new entitlement file. (Otherwise it will throw -34018 = errSecMissingEntitlementerror)

Then I added the keychain access group that I am interested in using also.

However, after doing so, the test app would no longer build with an error "Message from debugger: no such process."

Here's my setup
  • Xcode 12.4

  • Provisioning Profile: XCODE Managed Profile

(Mac Team Provisioning Profile) this profile says keychain sharing is enabling under capabilities & entitlement also contains keychain-access-group
  • Enable hardened runtime: NO

  • Code Signing Inject Base Entitlement: YES

  • Code Signing Style: Automatic

  • Other Code Signing Flags: --deep


Would you by any chance know what steps I am missing to enable iOS style keychain sharing on MacOS as above?

Thank you!
Peter





What you’ve described seems pretty reasonable other than this:

Other Code Signing Flags: --deep

You should not use --deep, for reasons I outlined in --deep Considered Harmful. This is especially true in Xcode, which already does the right thing when it comes to signing each code item independently from the inside out.

If removing --deep doesn’t help, please try launching the app from the Finder. Does that work?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Thank you, eskimo.
I tried both, and neither worked :(

OK. Launching from the Finder should have trigger the system to generate a crash report. Please post that here.

Use the text attachment feature (the paperclip icon) to avoid clogging up the timeline.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Adding keychain sharing on a MacOS test app causes "Message from debugger: no such process."
 
 
Q