前提・実現したいこと
・アプリのビルド
現在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も効果ありませんでした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。