I am new to Ionic framework and when I saw this blog post, I was excited to test the new Ionic version with Vue 3 and it’s composition API, but I ran into an issue while trying to run the app in iOS simulator using Xcode.
I started with “blank” template and made no other changes. Running dev server and testing in browser works fine without any issues.
When trying to run the app in Xcode, I get “Build Failed” error with a list of many things in the error console (see Xcode window in the attached screenshot). It works fine in browser so I don’t suspect it’s an issue of the app itself as it’s just Vue project using “blank” template.
I can run the app. I only got a warning (I dont get this on my app) which I fixed by double clicking on the warning and i clicked “Perform Changes” on the popup…
I did a test in the mentioned repository with Xcode 11.7 and it failed with the same errors as for my repository. I am installing Xcode 11.5 now to see if that works.
So, now I am running Xcode 11.5 and I can run your application in the simulator with success. But running my application is still not working… the errors are the same as in the original post. I will try to dig more into it, maybe trying to setup the project like new.
I will comment here if I will find something helpful.
I created a fresh new project in a new folder and it’s still not working. Now the errors are not listed under the App in Xcode, but from CapacitorCordova (as can be seen on the screenshot below).
All steps I made by following this and this documentation pages:
xcode-select --install
brew install cocoapods
npm install -g @ionic/cli@latest
ionic start ionic-test-app blank --type vue
cd ionic-test-app
ionic integrations enable capacitor
ionic build
ionic cap add ios
ionic cap open ios
Pressing the “Play” button in Xcode results in the error from the screenshot