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
Related
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 have some issues with Flutter dependancies in iOS (Cocoapods) via the pubspec.yaml file. I can duplicate the issues using the Flutter demo default program and copying these dependancies into the pubspec.yaml file.
cupertino_icons: ^0.1.2
http: ^0.12.0+4
fl_chart: ^0.10.0
flutter_spinkit: "^4.1.1"
flutter_fluid_slider: ^1.0.2
date_format: ^1.0.8
amazon_cognito_identity_dart: ^0.0.22
url_launcher: ^6.0.3
shared_preferences: ^0.5.6
barcode_scan: any
firebase_messaging: 6.0.16
device_info: ^0.4.0+4
flutter_secure_storage: 3.3.3
mapbox_gl: ^0.7.0
flutter_phoenix: "^0.1.0"
intl: ^0.16.1
google_mobile_ads: ^0.12.1+1
I also added this (Below) to Podfile:
platform :ios, '9.0'
use_modular_headers!
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
I get these errors:
Xcode's output:
↳
In file included from /Users/XXXXXX/.pub- cache/hosted/pub.dartlang.org/url_launcher-6.0.7/ios/Classes/FLTURLLauncherPlugin.m:7:
/Users/XXXXXX/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.7/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
Flutter (Channel stable, 2.2.2, on Mac OS X 10.15.7 19H2 darwin-x64,
I Futter clean & delete Pod.lock
Been dealing with this for days, any help would be appreciated, thank you
Have look at error: 'Flutter/Flutter.h' file not found when flutter run on iOS
Remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec
flutter clean
Run your app again.
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
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
I have just upgraded my flutter version and now I am facing the following issue when I get the packages in pubsec.yml file:
Because every version of flutter_test from sdk depends on image 2.1.4 and Instant_Feedback depends on image ^2.1.9, flutter_test from sdk is forbidden.
So, because Instant_Feedback depends on flutter_test any from sdk,
version solving failed. pub get failed (1; So, because
Instant_Feedback depends on flutter_test any from sdk, version solving
failed.)
My pubsec.yml file
dependencies:
flutter:
sdk: flutter
http: ^0.12.0+2
shared_preferences: ^0.5.4+8
firebase_messaging: ^6.0.3
flutter_crashlytics: ^1.0.0
firebase_core: ^0.4.2+1
cupertino_icons: ^0.1.3
device_calendar: ^1.0.0+2
cloud_firestore: ^0.12.11
auto_size_text: ^2.1.0
flutter_expandable_menu: ^0.0.1
webview_flutter: ^0.3.17
flutter_spinkit: ^4.1.1+1
get_it: 2.1.0
bloc: ^0.15.0
flutter_bloc: 0.21.0
equatable: 0.5.1
rflutter_alert: ^1.0.3
expandable: ^3.0.1
connectivity: ^0.4.6
firebase_auth: ^0.15.1
flutter_email_sender: ^2.2.1
mockito: 4.1.1
flutter_secure_storage: ^3.3.1+1
image_picker: ^0.6.2+2
async: any
image: ^2.1.10
image_crop: ^0.3.1
flutter_cache_manager: ^1.1.3
circular_profile_avatar: ^1.0.3
package_info: ^0.4.0+12
flutter_local_notifications: ^0.8.4+3
flutter_webview_plugin: ^0.3.10
url_launcher: ^5.2.7
flutter_localizations:
sdk: flutter
flutter_cupertino_localizations: ^1.0.1
dev_dependencies:
flutter_driver:
sdk: flutter
test: any
ozzie: 2.0.1
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- lib/app/assets/images/
- lib/app/assets/flags/
- lang/en.json
- lang/de.json
Because every version of flutter_test from sdk depends on image 2.1.4 and Instant_Feedback depends on image ^2.1.9, flutter_test from sdk is forbidden.
I faced the same issue. Couldn't find the specific reason for the flutter_test depending on a specific version of this image library. Maybe it's an issue from the flutter side. So here are some workaround solutions:
comment out the flutter_test dev_dependency.
dev_dependencies:
# flutter_test:
# sdk: flutter
set the required version.
Instead of 2.1.12, I set the Image package version to 2.1.4 (as requested in the error message)
image: ^2.1.4
If more than one packages versions are noncompatible to each other, and you don't know their exact compatible version, you can find it by setting both the conflicting dependencies to any, e.g.
flutter_crashlytics: any
firebase_core: any
This will automatically figure out the compatible package version. Check these new compatible versions in pubspec.lock file, which will be auto-generated by running flutter package get.
# Generated by pub
# See https://www.dartlang.org/tools/pub/glossary#lockfile
packages:
flutter_crashlytics:
...
version: "1.0.0"
firebase_core:
...
version: "0.4.2+1"
Replace any with those correct versions.
flutter_crashlytics: 1.0.0
firebase_core: 0.4.2+1
Note: You should never leave your versions as any