There is issue with first time (or after long inactivity) iOS simulator in case when it ask for password. VS do not wait for authority finish and exit running app with error: has exited with code -1 (0xffffffff).
App in simulator hang on startup logo/screen and cannot be removed from task list. Only simulator close or reboot helps.
it’s mac protection. Is same when You trying to install any software, then it ask for password. Same password as for login.
Here is explained: https://support.apple.com/en-us/HT201760