I think I should have mentioned that I am creating the builds online. Builds are being successfully created locally on both platforms but only iOS is getting failed on the expo server.
The command I am using - eas build -p ios -e production
Yes, if you add the environment variable to your “production” profile in eas.json then any node process that runs as part of the build should pick it up. I’m not sure if it will fix your problem, but I think it should. But you might have to try a higher number if 1536 still doesn’t work.