1
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?

More than 3 years have passed since last update.

ストレージの整理をしてたらFlutter iOSビルドができなくなった件。

Last updated at Posted at 2020-11-27

#症状
Macのストレージがいっぱいになってきたので、いらなそうなファイルを消していたら、iOSビルドができなくなった。

#エラーメッセージ
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)

とか。
その後flutter cleanしたら、Pod installでもエラーが出た。
Flutter: Cocoapods The 'Pods-Runner' target has transitive dependencies that include static binaries: Flutter.framework

#解決
①ホーム直下に置いてあったflutterフォルダ内を、再インストールで更新してから、
②flutter cleanして、
③ios/Flutter/Flutter.frameworkを丸ごと削除して再ビルドしたら、自動生成してくれてビルド完了した。
https://stackoverflow.com/questions/50306019/flutter-cocoapods-the-pods-runner-target-has-transitive-dependencies-that-inc

①の大元のflutterSDKフォルダが狂ってて、生成されるios/Flutter/Flutter.frameworkも狂ってたってことだね。

1
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
1
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?