Closed isenbj closed 3 months ago
Hello;
Usually, when there is an issue with Cocoapod resolution, you can safely delete Podfile.lock
, Pods
folder, then run flutter clean
. You can then run flutter pub get
, and if you want more information, go into the ios
folder and run pod install
(otherwise you are fine just running you app directly).
This is not directly related to FlutterFire, but occurs when using FlutterFire because we are using native dependencies. We are ready to move to Swift Package Manager which will be a LOT easier to use as soon as Flutter will support it.
Hi Lyokone, this doesn't work (as shown in my post).
What other options are there? Pod Install works just fine. This only happens during the build.
Is there an existing issue for this?
Which plugins are affected?
Storage
Which platforms are affected?
iOS
Description
I have been using various firebase libraries in my flutter project for a while now and am adding a feature needing firebase_storage.
From documentation, the only thing necessary should be adding the dependency and rebuilding. but any time I upgrade flutter, upgrade firestore dependencies, or add new ones I ALWAYS have issues with firestore related dependencies.
Could we get clarity on how to resolve issues like this, how the integration works with firestore and things like the COCOAPODS macro, how dependency relations are handled, etc? Because I have no idea how to resolve this issue beyond created a new project and copying everything to it. Deleting the podfile.lock, deleting the build, symlink, and pods folder doesn't work, deleting the ios directory is a tough resolution because I have a lot of native ios code in my project, various config for storekit, etc.
My only other idea is to copy everything over to the new project that works and hope it fixes my issue. But this is pretty bad when all I want to do is add a dependency....
When attempting to run in ios, I get the following errors:
pubspec:
firebase_core: 3.2.0 firebase_auth: 5.1.2 firebase_messaging: 15.0.3 firebase_analytics: 11.2.0 firebase_storage: 12.1.1 cloud_firestore: 5.1.0
podfile:
podfile.lock:
Reproducing the issue
I have created a new project, and imported the same dependencies and it works fine. So repro is hard. My main question is help understanding how to resolve this issue in my current project. I am not an ios developer and only really understand the flutter side of things right now.
doctor: [β] Flutter (Channel stable, 3.22.2, on macOS 14.1.1 23B81 darwin-arm64, locale en-US) [β] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [β] Xcode - develop for iOS and macOS (Xcode 15.0) [β] Chrome - develop for the web [β] Android Studio (version 2023.3) [β] VS Code (version 1.91.1) [β] Connected device (5 available) [β] Network resources
Firebase Core version
3.2.0
Flutter Version
3.22.3
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml Replace this line with the contents of your `flutter pub deps -- --style=compact`. ```
Additional context and comments
related issue only has the resolution "user config issue" but I can't accept that. What's the config issue? I am not an iOS dev so I can't troubleshoot that. I import this module as instructed and it doesn't work. All the steps there dont work.