sameerkapps / SecureStorage

118 stars 32 forks source link

Does not work on Mac iOS Simulator, VS2019 #48

Open rezamohamed opened 5 years ago

rezamohamed commented 5 years ago

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.

sameerkapps commented 5 years ago

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.

rezamohamed commented 5 years ago

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?

AndrejSlo commented 4 years ago

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