New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [cloud_firestore] Xcode build fails with errors: Expected a type in FirebaseFirestoreUtils.h #9015
Comments
|
Using the
I also tried to upgrade everything to the latest patches:
and with tag |
Same error logs in #9012 |
Had this issue this morning.. What a problem it was! Took me a few hours to figure out. Everything is working now though! What did I do? I tried cleaning my project out, deleted ios file and ran What fixed it?
run Then you need to manually update your pubspec.yaml with the latest version of firebase core, etc. Yes make sure you delete lock file first then manually update the dependencies. DO NOT run flutter pub upgrade. Won't work.. Just manually add them in :( |
You mean to delete the iOS folder, right? In any case, I did the rest of the steps, with no luck. Still getting the same errors in Xcode build process. |
yes exactly.. basically you need to manually update all your dependencies and clean things out.. |
Copy/paste of my stackoverflow answer
|
We are hitting these same errors. The following doesn't seem to address the issue. Dependencies:
|
It seems that building for physical device works. Building for Simulator device throws the errors. |
Temporary patch fix: If you remove the precompiled iOS framework (From Podfile) the issue seems to go away
|
@garrettApproachableGeek it worked thanks! No need to create or clean anything, Just did a I'm using
and
|
Indeed, it worked without the precompiled iOS framework, though it took like 9 minutes to build. |
I have been having the same errors since upgrading the Firebase dependencies to the latest versions, and have been using the precompiled Firebase SDK to save on loading times. Unfortunately been spinning my head for the past 8 hours trying to figure this out. Removing the precompiled framework from the Podfile as suggested above does indeed fix it for now, but with the downside of hugely increased compiling times. But at least there's no errors! |
Confirmed what others are saying above. Removing the 9.2.0 precompiled iOS framework works but results in much longer build times. Relevant issue here: invertase/firestore-ios-sdk-frameworks#53 |
Is there a way to downgrade the version to a working state just to keep developing our projects until this gets resolved? I don't think waiting 5-10 minutes every time is a viable solution Thanks! |
Same issue for me i lost about 3 hours searching for the reason. Finally found but compile times are huge. Thanks time killer firebase you did it again :( |
Hello, |
Same issue here on Intel... |
Mac mini 2018 intel core-i5, same issue. Build time is about 15-18 minutes on an empty project with only firebase dependencies |
** Developers who want to keep Firebase SDK Version 8.15.0 or do not intend to update to 9.2.0 ** We should avoid using caret (^) sign on e.g., ref about caret (^) sign Have a Nice Day! |
Intel for me |
Hey folks, there was a problem with the precompiled FirebaseFirestore pod, we had to merge a patch for firebase-ios-sdk 9.2.0 that is only available on the
In the next firebase-ios-sdk release, you will be able to revert back to using the previous implementation. i.e. the version:
|
Still not working... `kkoller@kk:~/Documents/anakin/wtc/git/wtc # flutter pub upgrade
Xcode's output:
Parse Issue (Xcode): Expected a type Parse Issue (Xcode): Expected a type Parse Issue (Xcode): Expected a type Generics Issue (Xcode): No type or protocol named 'FIRListenerRegistration' Semantic Issue (Xcode): Use of undeclared identifier 'FIRFirestore' Semantic Issue (Xcode): Use of undeclared identifier 'firestore' Semantic Issue (Xcode): Use of undeclared identifier 'firestore' ARC Semantic Issue (Xcode): No known instance method for selector 'remove' Encountered error while building for device.` |
Can we get a release with the fix like a |
THANKS FOR S O L U T I O N |
it worked for me, but only on the emulator, when I use the
however, I didn't leave my podfile exactly the same as in the example. I don't know if that could be it. my podfile:
is anyone having the same problem???? |
@edimarvirtual Try to add the mentioned
|
@rivella50 it worked here, thanks everyone. |
Solution It worked for me, please try. Podfile pubspec Terminal |
facing same issue M1 Chip |
Unfortunately, I had to recreate my IOS project. |
As of now the solution i've got is
Followed by command in |
I was able to resolve the issue using the following configurations: PodfileSet a global platform in the beginning. "11.0" probably will work, too. Set the tag to 9.4.0 and use the latest version of firebase packages (see the version numbers below)
Delete the IPHONEOS_DEPLOYMENT_TARGET property
pubspec.yamlThese are the latest version of the firebase pub packages I use. You can find other latest ones on pub that are published for firebase 9.4.0 sdk.
|
I was able to successfully build my xarchive. Then build the archive in the console It took quite longer to build aprox 350s. But it worked for me. Hope it can help other devs 👍🏽 Edit: buildtime using mac mini m1. |
This finally worked for me for 9.4.0, and I also tried with |
I was able to resolve the issue by removing |
Hello, The new version of iOS SDK should be released this Thursday. |
@Lyokone
But without it, the build takes a very long time. pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.6.0' pubspec.yml...
firebase_core: ^1.24.0
firebase_auth: ^3.11.0
cloud_firestore: ^3.5.0
cloud_firestore_odm: ^1.0.0-dev.32
firebase_storage: ^10.3.10
... Podfile# Uncomment this line to define a global platform for your project
platform :ios, '15.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!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.6.0'
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 |
Adding this line worked for me. |
Has anyone tried updating to
in combination with these Firebase package versions? firebase_auth: ^4.1.0 I get the exact same errors when doing so in my project: Xcode build done. 49.3s Performing these steps (which worked fine with version 9.3.0) don't succeed anymore: cd ios Any hints? EDIT: Problem solved. |
This is no longer an issue. You shouldn't need to update the |
Bug report
After upgrading the Firebase dependencies to latest versions, I get the following errors when trying to build for iOS:
Steps to reproduce
Steps to reproduce the behavior:
pub upgrade
to the latest dependencies.flutter run
on an iOS simulator.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: