Reputation: 31
after a lot of time searching a solution to my problem, I turn to you for help.
When I'm trying to use SecureStorage in my Xamarin Forms project, all work good on android but when I compile on IOS Simulator, there is this an error message : "Error adding record: MissingEntitlement".
I found the solution for this error, I just follow the Microsoft documentation : https://learn.microsoft.com/fr-fr/xamarin/essentials/secure-storage?tabs=ios
and now, there is an another error message : Could not find any available provisioning profiles for IOS.
Then, I created an Apple Developer account, go to my appaired Mac and start Xcode, and connect my apple Developer account to Xcode. But the error persist on Visual Studio for Windows.
I have tried all the solutions I have found but nothing works. I really don't know what to do anymore.
Upvotes: 3
Views: 4319
Reputation: 11712
You can use SecureStorage
on the iOS simulator even without Apple Dev account. For that, you need valid entitlements associated with your simulator build. I have described that in my similar response here and in official Microsoft docs:
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)xxx.xxx.xxx</string>
</array>
Upvotes: 1