Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] App icon generation with flavors seems to corrupt project.pbxproj #565

Open
LennardDeurman opened this issue Jul 8, 2024 · 1 comment

Comments

@LennardDeurman
Copy link

ℹ️ Info

Version: 0.13.1

💬 Description

Using the flutter_launcher_icons package I'm trying to create App icons for two flavors. I've created a flutter_launcher_icons-production.yaml and a flutter_launcher_icons-staging.yaml. My two flavors are named production and staging.

After running the command: flutter pub run flutter_launcher_icons I receive an error when opening the Xcode project, and get the following error when running the app again:

Screenshot 2024-07-08 at 10 34 54
Screenshot 2024-07-08 at 10 35 55

When I reset the project.pbxproj to the version before the modifications after the icon generations it works, and I can manually select the icons. It would however be great if this can be automatically done.

📜 Pubspec.yaml

flutter_launcher_icons-production.yaml

flutter_launcher_icons:
  android: true
  adaptive_icon_background: "assets/launcher/production/android/background.png"
  adaptive_icon_foreground: "assets/launcher/production/android/foreground.png"
  ios: true
  remove_alpha_ios: true
  image_path: "assets/launcher/production/icon.png"

flutter_launcher_icons-staging.yaml

flutter_launcher_icons:
  android: true
  adaptive_icon_background: "assets/launcher/staging/android/background.png"
  adaptive_icon_foreground: "assets/launcher/staging/android/foreground.png"
  ios: true
  remove_alpha_ios: true
  image_path: "assets/launcher/staging/icon.png"
@mayudevID
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants