🔥
Launching lib/main.dart on iPhone 15 in debug mode...Running pod inst
Flutter 3.22.3 + Firebase Error
iOS builer errorが発生😅
なぜだ。。。
Cocoa podsのエラーか?
Firebase SDKか?
バージョン下げたけど。原因はxcodeのiOSの最低バージョンを13に上げれば良いらしい?
以前もあったな。。。。
error log
Launching lib/main.dart on iPhone 15 in debug mode...
Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)
Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
cloud_firestore: Using Firebase SDK version '11.2.0' defined in 'firebase_core'
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
firebase_auth: Using Firebase SDK version '11.2.0' defined in 'firebase_core'
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
firebase_core: Using Firebase SDK version '11.2.0' defined in 'firebase_core'
-> Fetching podspec for `flutter_localization` from `.symlinks/plugins/flutter_localization/ios`
-> Fetching podspec for `shared_preferences_foundation` from `.symlinks/plugins/shared_preferences_foundation/darwin`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "cloud_firestore":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target.
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
<internal:kernel>:90:in `tap'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:682:in `attempt_to_activate'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/resolver.rb:94:in `resolve'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:422:in `analyze'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:162:in `install!'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Users/jboy422/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/Users/jboy422/.rbenv/versions/3.1.4/bin/pod:25:in `load'
/Users/jboy422/.rbenv/versions/3.1.4/bin/pod:25:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error: The plugin "cloud_firestore" requires a higher minimum iOS deployment version than your application is targeting.
To build, increase your application's deployment target to at least 13.0 as described at https://docs.flutter.dev/deployment/ios
Error running pod install
Error launching application on iPhone 15.
xcodeを開いて設定する
iOS build OK!
最後に
Flutter iOS Firebase Errorが発生したら、flutter clean
, pod update
以外の解決方法のことがあるので、xcodeの設定に問題があるかもしれないことも考えよう。
Discussion