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

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

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

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

iOS

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

Swift

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

Q&A

解決済

1回答

3233閲覧

【IOS】Command PhaseScriptExecution でビルドができない

Adachiinc

総合スコア0

Flutter

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

iOS

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

Swift

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

0グッド

0クリップ

投稿2020/07/26 15:37

前提・実現したいこと

・アプリのビルド

現在Flutterでアプリを作成しています。
二名で開発しており、相方はWindwsでAndroidにて動作確認を、私はMacにてiphoneにて動作確認をしています。

問題のビルド時に発生するエラーは、相方がFireBase周りの機能を実装させ、そちらを反映させた後に起こるようになりました。
何か解決の心当たりがあれば教えていただきたいです。

発生している問題・エラーメッセージ

Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ /Users/user/AndroidStudioProjects/app/ios/Pods/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.m:302:142: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] FLLog(FLLogLevelInfo, @"Dropping frame %zu because failed to `CGImageSourceCreateImageAtIndex` with image source %@", i, _imageSource); ^ self-> In file included from /Users/user/AndroidStudioProjects/app/ios/Pods/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.m:10: /Users/user/AndroidStudioProjects/app/ios/Pods/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.h:78:134: note: expanded from macro 'FLLog' #define FLLog(logLevel, format, ...) [FLAnimatedImage logStringFromBlock:^NSString *{ return [NSString stringWithFormat:(format), ## __VA_ARGS__]; } withLevel:(logLevel)] ^ 1 warning generated. /Users/user/AndroidStudioProjects/app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGallery.swift:447:11: warning: 'public' modifier is redundant for instance method declared in a public extension @objc public func present(photoGallery gallery: DKPhotoGallery, completion: (() -> Swift.Void)? = nil) { ^~~~~~~ /Users/user/AndroidStudioProjects/app/ios/Pods/DKImagePickerController/Sources/DKImagePickerController/DKImageAssetExporter.swift:175:17: warning: variable 'success' was written to, but never read var success = true ^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/buttons.dart:7:8: Error: Error when reading '../../flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/lib/url_launcher.dart': No such file or directory import 'package:url_launcher/url_launcher.dart'; ^ ^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in. abstract class PictureStreamCompleter with DiagnosticableMixin { ^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/input.dart:11:7: Error: The non-abstract class 'InputConnectionController' is missing implementations for these members: - TextInputClient.currentAutofillScope - TextInputClient.showAutocorrectionPromptRect Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation. class InputConnectionController implements TextInputClient { ^^^^^^^^^^^^^^^^^^^^^^^^^ ../../flutter/packages/flutter/lib/src/services/text_input.dart:801:21: Context: 'TextInputClient.currentAutofillScope' is defined here. AutofillScope get currentAutofillScope; ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/buttons.dart:416:15: Error: The method 'canLaunch' isn't defined for the class '_LinkButtonState'. - '_LinkButtonState' is from 'package:zefyr/src/widgets/buttons.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/buttons.dart'). Try correcting the name to the name of an existing method, or defining a method named 'canLaunch'. if (await canLaunch(link)) { ^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/buttons.dart:418:13: Error: The method 'launch' isn't defined for the class '_LinkButtonState'. - '_LinkButtonState' is from 'package:zefyr/src/widgets/buttons.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.11.0/lib/src/widgets/buttons.dart'). Try correcting the name to the name of an existing method, or defining a method named 'launch'. await launch(link, forceWebView: true); ^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'. super.debugFillProperties(description); ^^^^^^^^^^^^^^^^^^^ Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Building targets in parallel note: Planning build note: Using build description from disk warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'FLAnimatedImage' from project 'Pods') warning: AssetsLibrary is deprecated. Consider migrating to Photos instead. (in target 'DKPhotoGallery' from project 'Pods') warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'DKPhotoGallery' from project 'Pods') Could not build the precompiled application for the device. Error launching application on Myphone.

該当のソースコード

# Uncomment this line to define a global platform for your project # platform :ios, '9.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end

試したこと

相方の環境では動作するので、FireBase関連のPoodfileで問題があるのではないかと考え、以下のことを試しました。
・CocoaPodsの再設定
https://qiita.com/ShinokiRyosei/items/3090290cb72434852460

Command PhaseScriptExecution failed with a nonzero exit code に関しては、以下のサイトを参考にしましたが、該当する物はありませんでした。
https://qiita.com/masa-321/items/19f66557dcff65553f18

zefyrという外部ライブラリを導入しており、そちらがうまく行っていないかを試しました。

Flutter doctorも問題なく、Flutter cleanも効果ありませんでした。

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

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

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

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

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

guest

回答1

0

自己解決

7/31 追記:自己解決しました。
1.flutter_datetime_pickerについては、DatePickerThemeクラスのDiagnosticableMixinが対応されていないので、Diagnosticableに変更しました。
2.flutter_svgについては、pubspec.yamlに以下を追加しました。
dependency_overrides:
image: last_version
xml: last_version
3.zefyrについては、channelをstableにすることで解決しました。

投稿2020/07/31 02:43

Adachiinc

総合スコア0

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問