Hello,
I noticed that you name the Entitlements
file to Entitlements.xaml 2
, Please make sure that you add a new XML file named Entitlements.plist to the Platforms\iOS folder of your app project.
As you want to set securestorage, please add the keychain key like the following:
(XXX
means your App ID)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)XXX</string>
</array>
</dict>
</plist>
For more details, please refer to iOS entitlements - .NET MAUI | Microsoft Learn
and Secure storage - .NET MAUI | Microsoft Learn
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.