I develop on Ubuntu but to compile an iOS app I clearly need to do so from my Mac. I REALLY don’t want to develop on my Mac as it would completely break the workflow I’ve got for everything else I do and have established over years.
I would like to develop my Ionic apps on my Ubuntu machine and then just compile them on the Mac.
I’ve shared a folder from Ubuntu and can access it from my Mac. I have installed Ionic CLI on the Mac. However, I get errors when I try and do anything from the Mac terminal. Specifically, if I try and do something as simple as
ionic serve I get:
Error: Cannot find module '../lib/init'
If I try and run
ionic capacitor add ios I get:
Error: Cannot find module '../package.json'
If I do an
ionic start xxx on the Mac everything works perfectly, but clearly that doesn’t work for projects I’ve already started on my Linux machine.
Is there a difference between ionic projects on Mac and Linux?
Is there a way to do what I want to here, please?