AdventOfProgress Day 01

Let's start with the #AdventOfProgress.

Today I have planned out the frame of the application. The tech stack will be Expo.dev (React Native) and Supabase. This stack is what I had in mind for most of the time. First, I also wanted to add NativeWind for styling, but for now I want to start as clean as possible and focus on what is really needed to get out an MVP.

I've started with setting up expo.dev. I quickly run into some problems with the simulator, which was unable to start.

Error Message:

› Opening on iOS...
Error: xcrun simctl boot <DEVICE-ID> exited with non-zero code: 2
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Unable to boot device because we cannot determine the runtime bundle.
No such file or directory

So this needed a fix first. The web version was booting quite nicely with the expo-router.

The quick and dirty one was removing the .expo folder and running pnpm expo run:ios with a fresh simulator. I needed to delete the broken one. I got the ID from the error message, so I had to run xcrun simctl delete <DEVICE_ID> and if I did not forget anything, this was it. Sadly, I wasted around an hour on this. :(

Moreover, the simulator needs to be booted so Expo can work with it.

The flow is now that I boot the iOS Simulator and run pnpm start followed by a keypress of i to open the app inside the Simulator. For this, I've added a script "boot:ios": "xcrun simctl boot \"AppName\"

The simple way is now pnpm boot:ios followed by a pnpm ios. 🥳

Here is the first screenshot: Screenshot of a minimal and white iOS App the says "AdventOfProgress" in the title and "Home (logged-in area placeholder)" on the body.


59 of #100DaysToOffload
#log #AdventOfProgress
_Thoughts? Discuss...