Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Designed for iPad (iOS on MacOS) macOS 13.0 #549

Open
mariohahn opened this issue Oct 24, 2022 · 6 comments
Open

Designed for iPad (iOS on MacOS) macOS 13.0 #549

mariohahn opened this issue Oct 24, 2022 · 6 comments

Comments

@mariohahn
Copy link

if I try to store my credentials I get:

OSStatus error:[-34018] Internal error when a required entitlement isn't present, client has neither application-identifier nor keychain-access-groups entitlements.

Do you have any idea on how to solve that

@mariohahn mariohahn changed the title Designed for iPad (iOS on MacOS) Designed for iPad (iOS on MacOS) macOS 13.0 Oct 24, 2022
@mariohahn
Copy link
Author

it worked perfectly below macOS 13.0.

i also did codesign -d --entitlements :- AppName.app

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>application-identifier</key> <string>xxxxxx</string> <key>com.apple.developer.team-identifier</key> <string>xxxxx</string> <key>com.apple.security.application-groups</key><array> <string>xxxxx</string></array> <key>get-task-allow</key> <true/> <key>keychain-access-groups</key><array> <string>xxxx</string> </array> </dict> </plist>

@avjiang
Copy link

avjiang commented Oct 25, 2022

yeah i am facing this issue as well

below macOS 13.0 it is working well

@avjiang
Copy link

avjiang commented Oct 26, 2022

@mariohahn do you have any fix regarding this issue?

@kishikawakatsumi
Copy link
Owner

Can you try to set access group in your entitlements and retest it?

The access group should be like the following:
$(AppIdentifierPrefix)com.sample.KeychainAccessVentura

Screen Shot 2022-11-01 at 2 54 31

Also the code should be changed like the following:

let keychain = Keychain(
service: "com.sample.KeychainAccessVentura”,
accessGroup: “675ZX48YRQ.com.sample.KeychainAccessVentura"
)
keychain["ventura"] = “venturaTestKeychain"

$(AppIdentifierPrefix) is your TEAM_ID and dot.

1 similar comment
@kishikawakatsumi
Copy link
Owner

Can you try to set access group in your entitlements and retest it?

The access group should be like the following:
$(AppIdentifierPrefix)com.sample.KeychainAccessVentura

Screen Shot 2022-11-01 at 2 54 31

Also the code should be changed like the following:

let keychain = Keychain(
service: "com.sample.KeychainAccessVentura”,
accessGroup: “675ZX48YRQ.com.sample.KeychainAccessVentura"
)
keychain["ventura"] = “venturaTestKeychain"

$(AppIdentifierPrefix) is your TEAM_ID and dot.

@piercifani
Copy link

I can confirm that @kishikawakatsumi workaround works.

However, how would we use App Groups to share keychain items with this? I used to use the accessGroup to specify the AppGroup ID...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants