fluttercommunity / fluttercommunity/flutter_launcher_icons

Running this breaks my Xcode Runner!

Open
#634 2 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
2.1k
Forks
426
PR merge metrics
No merged PRs in 30d

Description

### :information_source: Info

Running the command updates incorrect parameter, which breaks Xcode.

Also, the iOS production icos get generated but Xcode still points to AppIcon instead of the new AppIcon-production. It works with staging fine though.

### :speech_balloon: Description

It generates the files fine, but for some reason it also updates the `ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS` values in project.pbxproj to be `AppIcon-staging`, when it's originally just set to `YES`.

This then breaks the Xcode project and the change has to be reverted.

Also, for the iOS production icon, Xcode still points to the original AppIcon instead of the new AppIcon-production. Staging works great.

I have no issues on Android though!

### :scroll: Pubspec.yaml

Staging:
```yaml
flutter_launcher_icons:
image_path: "assets/images/app_icons/staging.png"

android: true
min_sdk_android: 21 # android min sdk min:16, default 21

ios: true
remove_alpha_ios: true
```
Prod:
```yaml
flutter_launcher_icons:
image_path: "assets/images/app_icons/production.png"

android: true
min_sdk_android: 21 # android min sdk min:16, default 21

ios: true
remove_alpha_ios: true
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue using the staging and production configurations in the report, then inspect the generated iOS project.pbxproj. Confirm why ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS changes from YES and why production still points to AppIcon; done means both configurations preserve valid Xcode settings and select their intended icon sets.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, ios
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.