0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flutterビルド時に突然`Framework 'Pods_Runner' not found`でビルドできなくなった時の対処法

Last updated at Posted at 2024-07-29

問題

FlutterアプリをiOSで起動させようとした時、以下のエラーがXcodeで表示されたビルドができなくなってしまった

Framework 'Pods_Runner' not found

試したこと

flutter clean

flutter clean

Podfile.lock削除 -> pod install

cd ios
rm -f Podfile.lock && pod install

Xcodeのキャッシュを消す

rm -rf ~/Library/Caches/com.apple.dt.Xcode/

Xcodeの中間生成物を消す

rm -rf ~/Library/Developer/Xcode/DerivedData/

=> 効果なし

解決方法

  1. Podfileの内容をコピーしておく

  2. ios/Podfileを削除

    cd ios && rm -f Podfile
    
  3. flutter clean と pub getを実行

    flutter clean && flutter pub get
    
  4. Podfileにコピーした内容を貼り付ける

  5. pod install

    pod install
    

私はこれで解決できました!

参考記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?