I wanted to delete my iCloud account on an iOS simulator. I describe the solution below.
Tried setting the Screen Time to Off (advice from another forum) : my iCloud account was still present and the Sign out message still disabled (greyed out)
Xcode Version 13.3.1 (13E500a)
Full steps:
Logged into appleid.apple.com > Devices > Removed the simulator device
Opened a terminal on my mac: run
% xcrun simctl erase "iPhone SE (3rd generation)" // Name of simulator
Opened the simulator and it was reset to default, displays Sign into your phone
If you want to get the list of simulators, to ensure you have the correct name of the simulator
% `xcrun simctl list --json`
If you are unable to erase the simulator and receive a message it is in a booted state, make sure it is shutdown before you try to erase it
Hope this works for you !
1applefan
Post
Replies
Boosts
Views
Activity
Log into appleid.apple.com > Devices > Remove the simulator device
Open a terminal and run
% xcrun simctl erase "iPhone SE (3rd generation)" // Name of simulator
Open the simulator and it is reset to default, displays Sign into your phone
If you want to get the list of simulators, to ensure you have the correct name of the simulator
% xcrun simctl list --json
If you are unable to erase the simulator and receive a message it is in a booted state, make sure it is shutdown before you try to erase it