[Flutter]iOSアプリとしてビルドすると「Requested but did not find extension point with identifier Xcode.・・・」というエラーが発生する場合の対処法(動画なし)

このページには広告が含まれる場合があります。

 

Flutter2.10.x以前で作ったプロジェクトをFlutter3.0にアップグレード後にiOSアプリとしてビルドすると、アップグレード前はちゃんと動いていたにも関わらず、

xcodebuild[75892:3182634] 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
xcodebuild[75892:3182634] 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

というエラーが出て、ビルドに失敗する場合があります。

これは「パッケージ」だけを使っている場合には発生しないようで、プラットフォーム固有の機能を使う「プラグイン」を使っている場合に発生するようです。

ぼくの知る限りでは「image_picker」パッケージを使ってるプロジェクトで発生しましたが、これについては

1)パッケージのバージョンを最新(2022/5/12時点:0.85+2)にして

2)Podfile.lockファイルを削除してから

3)Terminalから「flutter clean」して

4)「pub get」して

5)Terminalからiosフォルダに移動して「pod repo update」

すると解消しました。

こんな記事も読まれています

【無料】生年月日を入力するだけ!

あなたの知らない「あなた」がわかる
無料診断ツール

あすコロ式
使命・性格タイプ診断

生年月日を入力するだけで144通りの性格パターンを診断。あなたの知らない「本当のあなた(生きる目的・使命)」と「偽りのあなた(無意識の思いグセ)」がわかります!

今すぐ無料で診断する ▶

TOP