質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

iOS

iOSとは、Apple製のスマートフォンであるiPhoneやタブレット端末のiPadに搭載しているオペレーションシステム(OS)です。その他にもiPod touch・Apple TVにも搭載されています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Dart

Dartは、Googleによって開発されたJavaScriptの代替となることを目的に作られた、ウェブ向けのプログラミング言語である。

Q&A

1回答

3567閲覧

flutter build errorの対処法

tk_art

総合スコア5

Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

iOS

iOSとは、Apple製のスマートフォンであるiPhoneやタブレット端末のiPadに搭載しているオペレーションシステム(OS)です。その他にもiPod touch・Apple TVにも搭載されています。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Dart

Dartは、Googleによって開発されたJavaScriptの代替となることを目的に作られた、ウェブ向けのプログラミング言語である。

0グッド

0クリップ

投稿2020/08/19 06:34

編集2020/08/19 06:41

今までiosのbuildが出来ていたのですが急に出来なくなり困っています。
色々な方法で対処したのですが全く解決出来ないでいます。。

======================================
・エラー文
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/${User}/App/${プロジェクト名}/ios/Flutter/Flutter.framework)

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in verify_no_static_framework_transitive_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in verify_no_static_framework_transitive_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `verify_no_static_framework_transitive_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:590:in `validate_targets' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:158:in `install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>' /usr/local/bin/pod:23:in `load' /usr/local/bin/pod:23:in `<main>'

======================================

・試したこと
pod install uninstallなど
git clone し直し

・flutter doctor
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale ja-JP)
• Flutter version 1.20.2 at /Users/${User}/installedLibrary/flutter
• Framework revision bbfbf1770c (6 days ago), 2020-08-13 08:33:09 -0700
• Engine revision 9d5b21729f
• Dart version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/${User}/Library/Android/sdk/
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Users/${User}/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.48.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2

[✓] Connected device (1 available)
• iPhone SE (2nd generation) (mobile) • C7373384-804B-432F-80D3-5D8F9B1B3E05 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)

• No issues found!

・pod version 1.9.3
・mac OS Catalina 10.15.6

以上、お忙しいところ恐縮ですがお力添えいただければ幸いです。
何卒宜しくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

fuzzball

2020/09/02 08:17

これは特定のプロジェクトでのみ発生するのでしょうか?
tk_art

2020/09/02 08:37

ご回答いただきありがとうございます。 全てのプロジェクトでiosをビルドした時に出てしまいます、、。
fuzzball

2020/09/02 08:45

新規のプロジェクトでもですか? CocoaPodを使わなくてもですか?
tk_art

2020/09/02 09:09

そうですね。 先ほど試しに新規プロジェクトで起動試したのですが下記エラーを吐きました。 Running Xcode build... └─Compiling, linking and signing... 2.3s Xcode build done. 11.2s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ ld: framework not found Flutter clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description Could not build the application for the simulator. Error launching application on iPhone 11.
guest

回答1

0

該当エラーのissueを見つけましたので,この方法をとって結果を教えていただきたいです.

Removing the ios/Podfile.lock folder, flutter clean, then flutter run again did the trick.

ios/Podfile.lockを削除後,flutter cleanをし,flutter runしてみてください.

(2020/09/02 12:55 追記)--------------------------------------------------------------

お役に立てず申し訳ないです.

こちらでリアクションの多い以下の内容も試されましたか?

For me, I deleted the ios/Flutter/Flutter.framework folder and install pods pod install again then it worked.

よろしくお願いします.

投稿2020/09/02 01:03

編集2020/09/02 03:58
okmt1230z

総合スコア17

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tk_art

2020/09/02 02:18

回答ありがとうございます。 こちらの方法もやったんですが The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: こちらのエラーが何しても出続けるんですよね、、。
okmt1230z

2020/09/02 03:57

回答を更新しました.ご確認・コメントお願いいたします.
tk_art

2020/09/02 08:09 編集

再度のご回答ありがとうございます。 こちらのissueも既に実践しており、pod installをすると Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.7) Installing Crashlytics (3.14.0) Installing FMDB (2.7.5) Installing Fabric (1.10.2) Installing Firebase (6.31.1) Installing FirebaseAnalytics (6.8.0) Installing FirebaseCore (6.10.1) Installing FirebaseCoreDiagnostics (1.6.0) Installing FirebaseFirestore (1.17.0) Installing FirebaseInstallations (1.7.0) Installing FirebaseInstanceID (4.6.0) Installing FirebaseMessaging (4.6.2) Installing Flutter (1.0.0) Installing GoogleAppMeasurement (6.8.0) Installing GoogleDataTransport (7.3.0) Installing GoogleUtilities (6.7.2) Installing PromisesObjC (1.2.10) Installing Protobuf (3.13.0) Installing abseil (0.20200225.0) Installing app_settings (3.0.0+1) Installing cloud_firestore (0.0.1) Installing cloud_firestore_web (0.1.0) Installing firebase_analytics (0.0.1) Installing firebase_core (0.0.1) Installing firebase_core_web (0.1.0) Installing firebase_crashlytics (0.0.1) Installing firebase_messaging (0.0.1) Installing fit_kit (0.0.1) Installing flutter_app_badger (0.0.1) Installing flutter_local_notifications (0.0.1) Installing flutter_plugin_android_lifecycle (0.0.1) Installing flutter_secure_storage (3.3.1) Installing flutter_webview_plugin (0.0.1) Installing gRPC-C++ (1.28.2) Installing gRPC-Core (1.28.2) Installing gallery_saver (0.0.1) Installing image_picker (0.0.1) Installing leveldb-library (1.22) Installing loading_indicator_view (0.0.1) Installing nanopb (1.30906.0) Installing notification_permissions (0.4.4) Installing package_info (0.0.1) Installing path_provider (0.0.1) Installing path_provider_linux (0.0.1) Installing path_provider_macos (0.0.1) Installing permission_handler (4.4.0+hotfix.2) Installing shared_preferences (0.0.1) Installing shared_preferences_linux (0.0.1) Installing shared_preferences_macos (0.0.1) Installing shared_preferences_web (0.0.1) Installing sqflite (0.0.1) Installing store_redirect (0.0.1) Installing url_launcher (0.0.1) Installing url_launcher_macos (0.0.1) Installing url_launcher_web (0.0.1) [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/User/App/project/ios/Flutter/Flutter.framework) こエラーが必ず出る現象は変わらずなんです、、。
okmt1230z

2020/09/03 02:40

これはちょっと分かりそうにないです. 助力できず申し訳ありません,,,
tk_art

2020/09/04 05:33

いえいえ!ご丁寧にありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問