Andrew Fletcher published: 4 May 2022 1 minute read
In Xcode attempting to build or run an app, I receiving a framework error.
Software / package | Version |
---|---|
Xcode | 13.2.1 |
@capacitor/cli | 3.4.3 |
@capacitor/haptics | 1.1.4 |
ionic | 6 |
@angular/core | 13.3.4 |
Previously, I had added via npm the following
npm i @capacitor/haptics
Whilst I had added the haptics package, then built and synchronised the code using
npm run build
npx cap sync
npx cap copy ios
npx cap open ios
How to fix this issue
This error is a result of my Podfile not being updated. To fix this you need to run:
npx cap update ios
npx cap build ios
This will force a refresh the Podfile. However, if this doesn't work, try deleting your iOS folder within your IDE and reinstalling with:
npx cap add ios
npx cap build ios
or:
ionic cap add ios
ionic cap build ios
Using a newer Mac (M1 chip)?
While the above steps are on the mark. If you have a Mac with M1 chip, first you will need to run:
arch -x86_64 gem install ffi
arch -x86_64 pod install
This will simulate Intel architecture and allow you to install the pods.
Related articles
Andrew Fletcher
•
17 Dec 2023
Ignoring ffi-1.16.3 because its extensions are not built. Try: gem pristine ffi --version 1.16.3
The error you're encountering indicates an issue with the ffi gem during the CocoaPods update. The error message suggests trying to run the gem pristine command to fix it.Using terminal - run the following command:gem pristine ffi --version 1.16.3This command will attempt to restore the ffi gem to...
Andrew Fletcher
•
31 Oct 2023
Android icon not changing
If the Android app icon is not changing from the default icon (in my situation this was the Capacitor icon), here are some steps to troubleshoot and resolve the issue: Check the Icon FilesEnsure that you have provided the correct icon files in the appropriate directory. In a Capacitor project,...
Andrew Fletcher
•
11 Oct 2023
Launching app code in a simulator like Xcode or Android Studio
Loading the code in a platform - in this article, I'll be focusing on Android and iOS. Ionic app shell prompts for iOS and Android devices. Here's a breakdown of the commands:npm run buildThis command is used to build your web app. It's typically associated with web development frameworks...