Flutter ios - app works on simulator fails on deploying to iphone - library not found for -lFirebaseCore - ios

As the title states I can run my app on ios simulator but when I attempt to deploy my app to the iphone through Xcode I get the error message
:-1: library not found for -lFirebaseCore
Any suggestions on what I might be doing wrong ? This is my pubspec.yaml
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
http: "^0.11.3+16"
crypto: any
validate: "^1.6.0"
json_annotation: ^0.2.4
image_picker: "^0.4.1"
firebase_messaging: ^2.1.0
device_info: ^0.2.1
location: ^1.4.1
cached_network_image: "^0.4.1"
mutex: #"^0.0.1"
logging: "^0.11.3+1"
uuid: ">=1.0.0"
web_socket_channel: ^1.0.9
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
json_serializable: ^0.5.2
Any suggestions are more than welcome. Thanks

I don't remember exactly, but you have to include either firebase_database or firebase_auth in pubspec.yaml. I'll make a test and update this later.

Try cd into the iOS folder of your flutter projects directory and run
pod install

Related

flutter ios app shows white screen in testflight mode?

flutter app runs fine in debug mode on simulator but after uploading on app store and running in test flight and after installing to apple device it just shows white screen .app
`
name: lapress
description: A new Flutter project.
https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.0+1
environment:
sdk: ">=2.2.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
provider: ^4.3.1
flutter_cupertino_localizations: ^1.0.1
connectivity: ^0.4.9
easy_localization: ^1.4.1
flutter_launcher_icons: ^0.7.5
shared_preferences: ^0.5.8
path_provider: ^1.6.27
url_launcher: ^5.7.10
sqflite: ^1.3.2+2
fluttertoast: ^7.1.6
cupertino_icons: ^0.1.3
table_calendar: ^2.2.3
localstorage: ^3.0.2+5
dev_dependencies:
flutter_test:
sdk: flutter
datetime_picker_formfield: ^1.0.0
http: ^0.12.2
intl_translation: ^0.17.10
flutter_datetime_picker: ^1.5.0
dependency_overrides:
intl: ^0.17.0-nullsafety.2
flutter:
uses-material-design: true
assets:
- image/asset/
- image/asset/asset_lang/
Welcome to SOF ✨:
It actually means there is an error which is not displayed in production (it displays red screen in debug mode, but seems you have no error in debug mode), try displaying error even in production (TestFlight) :
flutter.dev/docs/testing/errors and stackoverflow.com/a/53640242/305135
Specifically for this, sometimes this helps:
Xcode (Good to do)
Product -> Clean
IDE/Command-line (Must do to fix)
Flutter clean
flutter build ios --release
Xcode (Have to do anyways)
Archive
Upload App Store

Flutter iOS app working perfect in simulator but not in real device

My application working perfect in simulator but not working in real iOS device. Application crashes at startup.
i am using this lib in my project.
http: ^0.12.0+2
connectivity: ^0.4.2
fluttertoast: ^3.1.0
shared_preferences: ^0.5.8
google_sign_in: ^4.5.1
flutter_facebook_login: ^3.0.0
dots_indicator: ^1.2.0
percent_indicator: ^2.1.6
cached_network_image: ^2.3.2+1
razorpay_flutter: 1.2.3
image_picker: ^0.6.0+17
flutter_widget_from_html_core: ^0.5.1+4
webview_flutter: 1.0.7
device_info: ^1.0.0
store_launcher: ^1.0.1
package_info: ^0.4.3+2
flutter_tex: ^3.6.7+9
Run your project with Xcode to know why it crash.
Real device need you configure signing with your Apple ID.

Unable to run flutter. Throws "couldn't find package fluttery:" error

This is the error
description: A new Flutter project.
version: 0.9.91+50
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
SDK: flutter
cupertino_icons: ^0.1.2
audioplayers: ^0.11.0
agora_rtc_engine: ^0.9.4
cached_network_image: ^0.7.0
country_pickers: ^1.0.1
dio: ^2.0.22
flutter_launcher_icons: ^0.7.0
flutter_rating: ^0.0.2
fluttery: ^0.0.8
font_awesome_flutter: ^8.4.0
get_it: ^1.0.3
google_sign_in: ^4.0.1+3
image_picker: ^0.5.0+3
intl: ^0.15.7
intro_views_flutter: ^2.4.0
permission_handler: ^3.0.0
photo_view: ^0.2.1
razorpay_plugin: ^0.2.9
rxdart: ^0.21.0
shared_preferences: ^0.5.1+1
side_header_list_view: ^0.0.4
strings: ^0.1.0
url_launcher: ^5.0.2
path_provider: ^0.5.0+1
screen: ^0.0.5
flutter_typeahead: ^1.4.0
flutter_chips_input: ^1.2.0
intro_slider: ^1.2.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_icons:
android: "ic_launcher"
ios: true
image_path: "assets/images/ic_launcher.jpg"
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/
This is my pubspec.YAML file.
I have installed flutter and tried to run an existing flutter project on iPhone.
When I try running flutter, I get this error.
I tried searching for solutions but couldn't find one. Can anyone let me know what needs to be done?
I cannot find fluttery package in pub
Maybe is deleted. Check fluttery_dart2 as an alternative.
This is happening because flutter configured podfile that way. Default generated podfile by flutter won't allow ios build to download the nested dependencies.
To resolve you can alter podfile file by this and your issue would be resolved.
Search for this piece of code
target 'Runner' do
# Flutter Pod
And replace it with below
target 'Runner' do
use_frameworks!
# Flutter Pod
Update
Fluttery package is removed/temporary down due to flutter upgrade. So you should update your pubspec.yaml file with
fluttery_dart2: ^0.0.9
library to use the same functionality. Well this library will not be for long time once the original one will back.
Please read the note here

flutter Got socket error trying to find package android_alarm_manager: ^0.1.0

I just tried to get package from pubspec.yaml (with flutter packages get command) in my Flutter project but it raised this error :
Got socket error trying to find package android_alarm_manager: ^0.1.0"
I'm working on my company computer (Windows 7) that is behind proxy but I absolutely have no problem for other packages (ex. font_awesome_flutter: 6.0.0).
I tried with flutter beta version.
pubspec.yaml
name: background
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
font_awesome_flutter: 6.0.0
android_alarm_manager: ^0.1.0
isolate: ^2.0.0
dev_dependencies:
flutter_test:
sdk: flutter
uses-material-design: true
remove the proxy you are using first then get the package again

flutter reference to unspecified seems stuck at 0.3.4

I'm trying to add a reference to openid_client in my flutter app.
I add a dependency to openid_client: ^0.1.3 in my pubspec.yaml and save. This runs flutter packages get, which reports the following error:
Package unscripted has no versions that match >=0.6.2 <0.7.0 derived from:
- openid_client 0.1.0 depends on version >=0.6.2 <0.7.0
Indeed, the openid_client package does depend on unscripted version 0.6.2, but my flutter app cannot reference 0.6.2. It appears the highest version of unscripted my flutter app can reference is 0.3.4. Does anyone know what I'm doing wrong?
This is my pubspec.yaml as it currently stands:
name: flit
description: A new Flutter project.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
english_words: ^3.1.0
openid_client: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true

Resources