I have a mid 2013 Macbook Air.
Without realizing the effect of my actions, I accidentally typed into my terminal a sudo -rm -rf "Xcode" command, where I intended to delete Xcode but in actuality deleted all files that contained anything to do with Xcode. As a result, my Mac software was corrupted, and I am unable to login to my computer (it goes to login screen, after entering credentials it crashes).
After countless hours with Apple Support, I:
- Tried reinstalling Mac OS in normal recovery mode (Command + R) but it doesn't let me because it keeps asking me to enter login info for App Store purchases and never closes that screen.
- Then I tried Internet Recovery Mode, which for some reason isn't able to reinstall MacOS because of an Internet issue (although it works in normal recovery mode) and gives the error "Could not connect to Recovery Mode server." I read up on this on Stack Overflow, and it was advised to use an Ethernet cable connection, which I have tried, but it still doesn't work. In the Safari in the Internet Recover Mode, it gives me the error "Localized String not Found".