Forum Cross Platform with Xamarin

vs 2019 for windows error on Secure Storage in ios app

Hi,
I am totally confused.
I am using Visual Studio 2019 and builded a xamarin forms android app.
Now i am trying to debug the xamarin forms iOs App but i get an error when trying to use Secure Storage.
"Could not find any available provisioning profiles "
So far i created an apple developer account.
Enabled kaychain on Entitlements.plist and pointed Custom Entitlements to Entitlements.plist.
But build halts on the above error.
I was trying to add a provisioning profile at the my apple developer account but it asks me to add a device.
At this point i use only the iphone simulators.
Any help please

Thank you

Answers

  • assos40assos40 Member ✭✭

    After searching more it seems that i cant use Essentials Secure Storage on a iOS simulator.
    Am i right ??
    Is there a way to use it ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    It's better to test keychain features on a real physical device so we need to create the corresponding certificate, app id and provisioning profile on Apple portal.
    And the provisioning profile requires a specific testing device.

  • assos40assos40 Member ✭✭
    edited April 2020

    Thank you for your answer.
    My intention is to test on a real device for sure.
    But for everyday debugging it would be better to
    use a simulator.Like android debugging.
    So there is no other solution ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    There may be some unknown issues when you test keychain on simulators.
    So I suggest using real device.
    And there's no need to create provisioning profiles if you only want to deploy projects on simulators. So the device ID is unnecessary too.

  • assos40assos40 Member ✭✭

    And there's no need to create provisioning profiles if you only want to deploy projects on simulators. So the device ID is unnecessary too.

    But without provisioning profile i can not test the usage of secure storage.
    Am i right ?
    Thats my problem.
    I have android code that uses secure storage.
    On android simulators there were no issues.
    But when i started to debug the iOS code i can not use secure storage without creating a provisioning profile.
    And i can not create a profile for simulators.What means that i can not debug my iOS application on a simulator.
    Am i right or am i missing something ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    I test it with my simulators it works and simulators don't need a provisioning file.
    Here is the effect:

    Do not forget to set the Custom Entitlements to Entitlements.plist under iPhone simulator environment:

    You will see I didn't configure the provisioning profile there.

  • lindalinda Member ✭✭

    I too need secure storage.

    No matter what Bundle Signing I try, as soon as I include the Entitlements.plist it gives me the error

    Could not find any available provisioning profiles for .

    Do you have any other suggestions?

  • anyone help with this.

    I do not have a developer account so only want to test in simulator, but it complains about no provisioning profiles

Sign In or Register to comment.