まずはこちらを追加

podfileの末尾にこちらを追加
1 2 3 4 5 6 7 8 | # arm64を追加する際にこちらを追加 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings["ONLY_ACTIVE_ARCH"] = "YES" end end end |
次はpodを更新
1 | pod install |
その後にビルドを実行したら下記のエラーが発生
1 | 'Flutter/Flutter.h' file not found |
次はこちらを実行
1 2 | rm ios/Flutter/Flutter.podspec flutter clean |
参考記事
error: ‘Flutter/Flutter.h’ file not found when flutter run on iOS