[SOLVED] Flutter IOS Build Fail on Error Running Pod Install

preview_player
Показать описание
Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`
Error output from CocoaPods
Error running pod install

Solution:
If you are using Apple Silicon Chip (M1), you can do this
pod cache clean --all
Pod clean
pod deintegrate
sudo gem install cocoapods-deintegrate cocoapods-clean

sudo arch -x86_64 gem install ffi
arch -x86_64 pod repo update
arch -x86_64 pod install
Рекомендации по теме
Комментарии
Автор

Thank you sir, this really saved me after hours of tassle 😇😇

josephbeep-tech
Автор

sudo arch -x86_64 gem install ffi. doesnt work on the m1 macbook

jerrynkongolo
Автор

pods installed successfully, but again when I tried to run the iOS App directly from the android studio the iPhone terminal, I faced the same issue.

rajasaad
Автор

works thank you .. what about If I update the app and I want another .ipa ?
do I have change version numbers ?

littilefx
Автор

In my case it is again showing the same error
Please help me for solving it

AnuragSharma-ndcz
Автор

After sudo arch -x86_64 pod repo update
I got an error : You cannot run Cocoapods as root
Please help me fix that

juthedz
Автор

Getting the error - `require': cannot load such file -- ffi_c (LoadError)'

After running the command - 'arch -x86_64 pod repo update'

Nikg
Автор

THANK YOU SO MUCH SIR! IT'S WORK FOR ME!

arepadnan
Автор

Even after all these steps i get the same issue, I tried it on both mac intel chip and m2 chip, how can i fix it please ?

ayansaalemu
Автор

error " undefined method `map' for nil:NilClass"

XGus
Автор

arch -x86_64 pod install
Analyzing dependencies
[!] Unable to find a target named `RunnerTestsflutter run
` in project `Runner.xcodeproj`, did find `Runner`.

what should I do

MUKULYADAV-xswm