DEV Community

Discussion on: Tips and tricks to set up your Apple M1 for development

Collapse
 
nmsand profile image
Nat Sandoval

I also recently joined Courier; I was very excited to receive a brand new MacBook with an M1 Chip! I did, however, run into a bit more problems than Chris. I decided to install Xcode from the App Store, instead of terminal, since I was already downloading slack and other apps from there. Somehow, this seems to have goofed up my setup. Despite following Chris' advice when setting up my environment, bundling for serverless deployment seemed to freeze! Uninstalling Xcode and attempting to reinstall it through terminal also didn't work, that froze too! All advice found was to factory reset my computer.
The factory reset process for the M1 chip is a bit different, instead of the command-R during startup, you must hold the power button until you see "Loading Start-up Options", then you wipe your disk as usual and attempt to reinstall your OS. Unfortunately I ran into a problem when doing that as well. It seems to be common with M1 chips, even though it's not supposed to happen with Big Sur 11.01, that during reinstall you get an error that says something along the lines of "Cannot personalize Software"; your MacBook M1 turns into sleek and beautiful brick… This is where another Mac and app configurator 2 come into play.
Download app configurator 2 into your second Mac and begin connecting. You must connect your second MacBook to power, and using your new Mac's apple cable (must deliver power and data) connect it to your beautiful brick. (Note: You must use your M1s thunderbolt port that is closest to the back, otherwise it will not be recognized by app configurator 2). Press and hold your M1s power button. At the same time, hold the right shift key, the left option key, and the left control key for EXACTLY 10 seconds (otherwise it will not appear in configurator 2) let go of the keys and continue holding the power button. Your M1 will not have any sort of reaction, but it will appear in app configurator 2. Select it, click actions, restore. Make sure you don't lose power during restore to either Mac, wait for restore to be completed, then set up your Mac again. Install Xcode from terminal (I specifically tried to use git command, and just accepted when it asked me to install Xcode.) Follow Chris' instructions and enjoy your Mac!