fluttercommunity / fluttercommunity/flutter_launcher_icons
Extra characters added to project.pbxproj file causing iOS build failure when using flutter_launcher_icons
- Dominant language
- Dart
- Stars
- 2.1k
- Forks
- 426
- PR merge metrics
- No merged PRs in 30d
Description
I am using the Flutter Launcher Icons package to generate icons for multiple schemes in my Flutter app. When I run the command:
dart run flutter_launcher_icons
It adds extra characters to the end of the project.pbxproj file located at:
ios/Runner.xcodeproj/project.pbxproj
The extra characters added are:
*/;
}
This causes the Xcode project to be unreadable, resulting in the following error when trying to build the app on iOS:
unable to read project 'Runner.xcodeproj'.
Reason: The project ‘Runner’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
Additionally, when I try to run:
pod install
I receive this error:
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method 'map' for nil
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `dart run flutter_launcher_icons` with multiple schemes, then inspect `ios/Runner.xcodeproj/project.pbxproj` for the reported trailing characters. Confirm the generated project remains parseable and that the iOS build no longer reports a damaged project; investigate the related `pod install` error if it is part of the same failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100