投稿

12月, 2022の投稿を表示しています

arm64 Mac で pod install 時の ffi の mach-o file, but is an incompatible architecture (have (arm64), need (x86_64))

## TL:DR arm64 Darwin で `flutter run` 時 (の `pod install` 時) に `mach-o file, but is an incompatible architecture (have (arm64), need (x86_64))` と言われたので、以下を実行したら解決した。 ```bash sudo arch -x86_64 gem install ffi ``` ## エラー全文 ``` $ flutter run Launching lib/main.dart on iPhone SE (3rd generation) in debug mode... Running pod install... 1,329ms CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) Finding Podfile changes - Flutter - adjust_sdk - firebase_analytics - firebase_core - firebase_messaging - flutter_apns_only - flutter_facebook_auth - flutter_image_compress - flutter_inapp_purchase - flutter_inappwebview - google_sign_in - image_cropper - image_gallery_saver - image_picker - in_app_review - media_info ...