Lately I've been experimenting with Ionic/Capacitor to build native apps using Vue.js. But I had problems building for iOS and configuring all the dependencies... so I wrote this short guide to help you with that.
This is part of #10stips (the column where you learn how to solve coding issues within 10 seconds or so, because I already tested it for you).
After creating a sample app, that I tested on the browser with
ionic serve, I felt ready to deploy it on my iPhone.
I plugged in the phone to my Mac Mini M1 via USB-cable, made sure it has been recognised, and in Visual Studio Code I launched a new terminal and typed...
ionic build ionic cap add ios
and boom! command failed.
zsh: command not found: pod
Invalid Podfile file: cannot load such file -- /Users/admin/CapProject/node_modules/@capacitor/ios/scripts/pods_helpers
WTF! It took me a while to make it work, so I created these steps for you:
Few, you're done! Make your clients happy ;)