I’ve spent days stuck on this. I’ve tried many flutter pub and pod commands but nothing works. I've also deleted the pods folder and re-added the firebase-ios-sdk.
I keep seeing this :
In Podfile:
firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 9.1.12, which depends on
Firebase/Analytics (= 9.2.0) was resolved to 9.2.0, which depends on
Firebase/Core (= 9.2.0) was resolved to 9.2.0, which depends on
FirebaseAnalytics (~> 9.2.0) was resolved to 9.2.0, which depends on
FirebaseAnalytics/AdIdSupport (= 9.2.0) was resolved to 9.2.0, which depends on
GoogleAppMeasurement (= 9.2.0)
google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 0.0.1, which depends on
Google-Mobile-Ads-SDK (= 8.13.0) was resolved to 8.13.0, which depends on
GoogleAppMeasurement (< 9.0, >= 7.0)
So I got desperate, deleted the whole ios folder and then run flutter create .
it regenerated everything and then I run flutterfire configure
. Everything seemed fine but I still can't build or run the app targeting ios. I think somehow, xcode is preserving some settings or files and pod cache clean
is not even deleting that. What should I delete/nuke in xcode? I'm tired.
Podfile :
platform :ios, '12.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