SecureStorage icon indicating copy to clipboard operation
SecureStorage copied to clipboard

Does not work on Mac iOS Simulator, VS2019

Open rezamohamed opened this issue 5 years ago • 3 comments

Running on VS2019 16.1.3 and building on Mac machine with Mojave 10.14.5

Downloaded the sample app, and unloaded all projects except the iOS project. Built the project with the iOS project as startup, iOS Simulator for iPhone 8 iOS 12.2, keep getting the error message 'Could not find any available provisioning profiles for iOS.'

In the project properties, iOS Bundle Signing, Custom Entitlements - Entitlements.plist is chosen

In the Entitlements.plist, enable keychain is checked with the keychain group com.sameer.SecureStorageSample.

image

Please advise.

rezamohamed avatar Jun 23 '19 22:06 rezamohamed

Thanks for trying out. From the message, it sounds like there is no provisioning profile installed. You would need to install that. If you have a "paid" apple developer acct, here is how you can do it: https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/manual-provisioning?tabs=windows

If you do not have a paid account, there is a hack: https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning?tabs=windows

In either case, when you create the profile, you want to use app name same as the sample app. Hope this helps.

sameerkapps avatar Jun 26 '19 03:06 sameerkapps

So just to clarify, when using Secure Storage, we cannot test on the iOS simulator? Testing can only be done on the physical iPhone attached?

rezamohamed avatar Jun 27 '19 14:06 rezamohamed

It works for me with simulator, but I've had to set manual provisioning and manually enter the Entitlements.plist. image

AndrejSlo avatar Feb 16 '20 23:02 AndrejSlo