oguzhan.cblt
oguzhan.cblt

Reputation: 31

Xamarin forms : Could not find any available provisioning profiles for IOS

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

Keychain enable

Signature of bundle 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

Answers (1)

Mando
Mando

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:

  1. Modify your custom Entitlements.plist to include keychain access groups:
<key>keychain-access-groups</key>
<array>
     <string>$(AppIdentifierPrefix)xxx.xxx.xxx</string>
</array>
  1. Apply the entitlements to the iOS Simulator configuration in project settings:

enter image description here

Upvotes: 1

Related Questions