iOS app icon not showing up using flutter - ios

I have tried so many ways and fixes but my app icon still not showing up. I'm using flutter and I used the flutter_launcher_icons package but still no use.
Here's my pubspec.yaml dev_depend:
dev_dependencies:
flutter_launcher_icons: "^0.7.3"
flutter_test:
sdk: flutter
and here the config:
flutter_icons:
android: "launcher_icon"
ios: "AppIcon"
image_path_ios: "assets/icon/icon.png"
image_path: "assets/icon/icon.png"
and here's my AppIcon file
This is my flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0-1.0.pre.118, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Community Edition (version 2018.2.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
! Doctor found issues in 1 category.
This is my Asset Catalog App Icon looks like:

Thanks to #SamiHaddad, I missed setting the AppIcon to Asset Catalog App Icon Set Name in the general section of the Runner file in Xcode. This fixed my issue.

It is worked for me in iOS through manual changes when dependency not worked:-
I have generated app icon which required in manual icon changes through site
(appicon.co)
There I got zip file of Image in which I found a folder Assets.xcassets
after extracting the zip file
I found Appicon.appiconset inside the folder Assets.xcassets
I replaced that Appicon.appiconset folder to
iOS/runner/Assets.xcassets/Appicon.appiconset folder
Flutter pub get
Flutter Run

Related

Parse Issue (Xcode): Module 'url_launcher_ios' not found

i'm trying to using package: url_launcher of flutter to make call.
my project working til well and when i install url_launcher i got error like this
Parse Issue (Xcode): Module 'url_launcher_ios' not found
my flutter doctor fine
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.1 22C65 darwin-arm, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Community Edition (version 2022.1)
[✓] VS Code (version 1.65.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
• No issues found!
some way i also try
flutter clean & flutter pub get
pod update repo && pod install
Try this:
Close Xcode
Check if your minimum deployed version in the pod file is not commented
Check if the package scheme is added in the info.plist file, here.
<key>LSApplicationQueriesSchemes</key> <array> <string>sms</string> <string>tel</string> </array>
Use the lastest version of the package (which is 6.1.7) (as of the date of this answer).
Do and run the following
Delete the pubspec.lock file in the project app directory.
flutter clean
flutter pub get
In the ios directory, run
pod install & pod install --repo-update

Flutter with direct dart firebase initialization still gets error on real device: Could not locate configuration file: 'GoogleService-Info.plist'

Flutter 2.8.1 using flutterfire - according to docs, should not need use the GoogleService-Info.plist file. This version states that it support direct dart initialization. Works fine on simulator, but when running on real iOS device - from Android Studio or XCode, I get the error about the plist file. flutterfire configure creates a valid firebase_options.dart file and main looks like this:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}
Output of flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
Looks like this is a known issue:
https://github.com/FirebaseExtended/flutterfire/issues/7983
Need to keep an eye out for a solution....
Do you have add the GoogleServices-info.plist file in XCode?
I mean do you have drag and drop it from Finder to Android Studio or XCode.
You need to drag and drop it to XCode.

Flutter build ios project failed with unable to read input file as a property list

When i open ios module with xcode and try to build project, I get this error: unable to read input file as a property list.
environment:
[✓] Flutter (Channel stable, 1.22.3, on macOS 11.2.3 20D91, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
1. Run `pod install`.
2. build ios module in xcode.
Anyone knows how to solve it please?
[1]: https://i.stack.imgur.com/FEiRD.png
Try deleting project/ios directory from the root folder and run this commond
flutter create .
this will re-create the flutter ios project, now run this project on ios emulator first and then try to build on xcode. It worked for me

could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths

$flutter doctor
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.6 19G2021 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.51.1)
[✓] Connected device (1 available)
• No issues found!
When i try to build on Xcode, i have this issue:
Showing Recent Messages /ios/Flutter/Release.xcconfig:1: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths
Open the terminal, navigate to the project by typing:
cd your_file_path
After that navigate to the iOS folder by typing:
cd ios
Finally, fix your problem by implementing the missing podfile by typing:
pod init
Then, open the newly created podfile, follow instructions in the file (which tell you to remove a comment on the second line of the file).
Close your Flutter project, and reopen it.
Run your project again.
if it is not working, following this way
navigate ios/Podfile file and uncomment platform :ios, '9.0'(remove #)
Try running flutter build ios and then rerun in Xcode

Pub can't retrieve any Dart packages

No matter which dart package I am trying to fetch, pub fails retrieving it.
When in my project root folder, I run:
flutter packages get
I consistently get:
Got socket error trying to find package cupertino_icons at https://pub.dartlang.org.
pub get failed (69) -- attempting retry 1 in 1 second...
Here is the output from flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (on Mac OS X 10.13.3 17D47, locale en-US, channel beta)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] IntelliJ IDEA Community Edition (version 2017.3.5)
[!] VS Code (version 1.21.1)
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories.
and the pubspec is what comes with IntelliJ Flutter's wizard:
name: my_friendchat
description: A new Flutter project.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: "0.1.1"
Any idea how to fix pub?
So... restarting my laptop just fixed it. 😕

Resources