There are multiple iOS simulator runtimes located at /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime which I don't need. I tried the following approaches to delete them but not working.
- Xcode > Settings > Components > Delete (It can delete some but not all of them)
- xcrun simctl runtime list (It doesn't show the old runtimes)
- sudo rm (Operation not permitted)
sudo rm -rf cc1f035290d244fca4f74d9d243fcd02d2876c27.asset
Password:
rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData/096-69246-684.dmg: Operation not permitted
rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/AssetData: Operation not permitted
rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/Info.plist: Operation not permitted
rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset/version.plist: Operation not permitted
rm: cc1f035290d244fca4f74d9d243fcd02d2876c27.asset: Operation not permitted
I have two questions:
- Why "xcrun simctl runtime list" is unable to list some old runtimes?
- How to delete them?