Closed7

Flutterビルドエラー達の墓

Daigo WakabayashiDaigo Wakabayashi

'Flutter/Flutter.h' file not found

In file included from /Users/mamushi/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.7/ios/Classes/FLTSharedPreferencesPlugin.m:5:
    /Users/mamushi/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.7/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>

参考

https://github.com/flutter/flutter/issues/70895

Daigo WakabayashiDaigo Wakabayashi

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99.

  • PodFileの最上部がコメントアウトされていたら外す
  • PodFileの最下部に以下をコピペ
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
    end
  end
end
Daigo WakabayashiDaigo Wakabayashi

Could not run build/ios/iphoneos/Runner.app on <デバイスID> Try launching Xcode and selecting "Product > Run" to fix the problem:

  • "Product > Run" しても治りません

参考

  • Xcode をアップデートする
Daigo WakabayashiDaigo Wakabayashi

Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

    2022-03-22 09:13:58.413 xcodebuild[92947:1035803] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-03-22 09:13:58.414 xcodebuild[92947:1035803] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

macOS を 12.3 にアップデートすることで解決

https://github.com/flutter/flutter/issues/100161#issuecomment-1073215240

Daigo WakabayashiDaigo Wakabayashi

CocoaPods not installed. Skipping pod install.

Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
Exception: CocoaPods not installed or not in valid state.

cocoapods をインストール

sudo gem install cocoapods

VSCode を再起動
→解決

Daigo WakabayashiDaigo Wakabayashi

Unable to Verify App(An Internet connection is required to verify trust of the developer....)

  • 新しい iPhone で実機ビルドしようとした際に発生
  • iPhone 側の Privacy Security → Developer Mode は On にしている
  • iOS 16

解決方法(どのタイミングで解消できたかはわからない)

  • Development の certificate を再作成
  • ネットを一度遮断(キャリア通信OFF & WiFiもOFF)し再接続
  • iPhone 再起動
このスクラップは2022/02/09にクローズされました