I am having this error when I am building my app with Xcode 'module 'cloud_firestore' not found. [enter image description here][1] I have updated my Cocoapods to 1.9.3 and I updated the flutter to 1.17.3, but still is not working and I am opening the file.xcworkspace.
Also, these are the versions of my dependencies:
flutter:
sdk: flutter
flutter_screenutil: ^1.0.2
intl: ^0.16.1
charts_flutter: ^0.8.1
flutter_picker:
git: git://github.com/yangyxd/flutter_picker.git
flutter_cupertino_data_picker: ^0.8.6
firebase_core: ^0.4.3+1
#firebase_analytics: ^5.0.9
firebase_auth: ^0.15.1
provider: ^4.0.4
flutter_spinkit: ^4.1.2
cupertino_icons: ^0.1.2
cloud_firestore: ^0.12.10
firebase_database: ^3.1.3
[1]: https://i.stack.imgur.com/ZPc71.png
from this
For anyone who is facing the problem when “Archiving” or trying to publish to the Apple Store:
Make sure to have all projects closed in Xcode
Open “Runner.xcworkspace” not runner.xcodeproj
You have to make sure that runner.xcodeproj is not open at the same time with workspace.
This is also assuming that you have run and built successfully prior to making an archive.
Update the firestore version:
cloud_firestore: ^0.13.6
Related
I am currently trying to implement localization in my Flutter App but whenever I try to add the dependency for flutter_localization, I get the following error Message:
Because the timer depends on flutter_localization from SDK which doesn't exist (could not find package flutter_localization in the Flutter SDK), version solving failed.
I have also correctly added the path to both my flutter and dart SDKs in Android Studio.
Here is my pubspec.yaml file:
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=2.18.2 <3.0.0'
dependencies:
flutter:
sdk: flutter
intl: ^0.17.0-nullsafety.2
cupertino_icons: ^1.0.2
sqflite: any
shared_preferences: ^2.0.15
path_provider: any
flutter_localization:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
I can't access GlobalMaterialLocalizations without flutter_localization and apparently, this is the easiest solution. I have already tried many solutions like checking version compatibilities and updating all dependencies. can you guys help me out?
Thanks in Advance!
Upgrading SDKs, Upgrading Dependencies, reinstalling flutter and Dart, and more
You misspelled the package
Replace
flutter_localization:
sdk: flutter
With
flutter_localizations:
sdk: flutter
Take note on the s on flutter_localizations
So after a point of time developing my Flutter application, I find myself where my app is not opening in all architectures. I tried to see if the crash comes to Crashlytics, but understood only when we open our app next time the app will open.
I tried some of the solutions out there to keep abiFilters in ndk block of the build.gradle. Nothing worked.
yaml dependencies are
dependencies:
flutter:
sdk: flutter
http: ^0.13.3
country_code_picker: ^2.0.2
flutter_background_geolocation: ^4.0.2
shared_preferences: ^2.0.6
package_info: ^2.0.2
google_maps_flutter: ^2.0.6
provider: ^5.0.0
mixpanel_flutter: ^1.0.0
swipebuttonflutter: ^1.0.0
flutter_swipe_button: ^1.1.0
synchronized: ^3.0.0
flutter_local_notifications: ^6.0.0
firebase_core: ^1.4.0
sqflite: ^2.0.0+3
path: ^1.8.0
firebase_messaging: ^10.0.4
firebase_crashlytics: ^2.1.1
firebase_performance: ^0.7.0+7
url_launcher: ^6.0.9
dev_dependencies:
flutter_test:
sdk: flutter
And the apk structure is
Able to run it after keeping all abiFilters in defaultConfing and in release blocks in the build.gradle file.
The main reason is Flutter is building apk specific to the device that ur system is connected to. We need to close all the device connections and use the command
flutter build apk --debug or --release for release build
I am trying to release my flutter app and I encountered this problem where the release size of ios app is too large. The apk release size is about 21.4 MB and the ios release size is about 480 MB!! I don't know what is the problem I tried to update flutter and flutter clean but nothing has changed.
These are my dependencies in pubspec.yaml file
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
intl: ^0.16.1
provider: ^4.1.3
image_picker: ^0.6.7+4
firebase_auth: ^0.16.1
firebase_core: ^0.4.5
firebase_storage: ^3.1.6
cloud_firestore: ^0.13.7
chips_choice: ^1.2.0
cached_network_image:
modal_progress_hud: ^0.1.3
google_sign_in: ^4.5.1
font_awesome_flutter: ^8.8.1
url_launcher: ^5.5.0
dotted_border: ^1.0.6
timeago: ^2.0.26
flutter_rating_bar: ^3.0.1+1
percent_indicator: ^2.1.5
and the my assets file (images and fonts) is about 1.4 MB.
I would really appreciate your help.
First run "flutter clean" in the terminal, then try to release the apk. Normally it is bigger but flutter clean can reduce more spaces.
--release flag help you to delete log file from fat APK. try to use following command:
flutter build apk --release
and For Android,
check to build->apps->output->apk
Make sure you running android emulator.
For iOS,
flutter build ios --release
But you required valid profile certificate
Reference document
I've been experiencing this only on ios emulator. Android works perfectly.
When I run my app I get blank white screen, but no error in console.
But when I hot reload I got this:
When I hot restart the app crashes with:
I stumbled upon similar posts and some had to do with dependencies. Most specifically firebase_messaging, however I don't use the one. I do think it maybe has to do with my flutter_localization dependency, but when I tried to run the app without it, it didn't change anything.
I also tried to change the channels and the app works on master channel but throws all sorts of other weird errors on both android and ios so I decided to stay on stable channel.
Here are my dependencies:
dependencies:
flutter:
sdk: flutter
# Localization
flutter_localizations:
sdk: flutter
firebase_auth: ^0.14.0+5
flutter_auth_buttons: ^0.6.0
firebase_storage: ^3.1.3
firebase_database: ^3.1.3
cloud_firestore: ^0.13.4+2
# Facebook Login
flutter_facebook_login: ^3.0.0
# Password Packages
flutter_password_strength: ^0.1.4
password_strength: ^0.1.2
# Font Awesome
font_awesome_flutter: ^8.7.0
# Image Picker
image_picker: ^0.6.3+4
# Money Parser
flutter_masked_text: ^0.7.0
# Google Maps
google_maps_flutter: ^0.5.25+2
#Geocode
geocoder: ^0.2.1
# Nanoid - ID generator
nanoid: ^0.1.0
# URL Launcher
url_launcher: ^5.4.2
# Charts
multi_charts: ^0.2.0
# Launcher Icons
flutter_launcher_icons: ^0.7.4
# Flare Animations
flare_flutter: ^2.0.3
dependency_overrides:
firebase_core: 0.4.4
my pubspec.yaml
cupertino_icons: ^0.1.3
responsive_container: ^0.0.1
flutter_html: ^0.10.4
http: ^0.12.0+4
flutter_pagewise: ^1.2.3
share: ^0.6.3+6
flutter_youtube: ^1.1.6
loader_search_bar: ^1.0.3+3
firebase_messaging: ^5.1.4
flutter_local_notifications: ^0.8.2
flutter_signin_button: ^1.0.0
url_launcher: ^5.1.2
cloud_firestore: ^0.13.4+2
shared_preferences: ^0.5.6
rate_my_app: ^0.4.0
font_awesome_flutter: ^8.8.1
flutter youtube plugin working good at android same videos
but at ios i get error
[XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code: -2
User Info: {
}
problem fixed with me by luck
i comment
platform :ios, '10.3'
at Podfile
i was uncomment it
becouse that error
[!] Automatically assigning platform `iOS` with version `9.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`.
any way that's working now at ios too
am happy to share it with all