VeryGoodOpenSource / very_good_cli

A Very Good Command-Line Interface for Dart created by Very Good Ventures 🦄

Home Page:http://cli.vgv.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set...

Lazizbek97 opened this issue · comments

Description
I have tried to run newly created project on ios. and it is failing with The project ‘Runner’ is damaged and cannot be opened due to a parse error

Steps To Reproduce

  1. dart pub global activate very_good_cli
  2. very_good create flutter_app my_app --desc "My new Flutter app" --application-id "com.custom.app.id"
  3. Open the project, and try to run on ios
  4. See error
 2024-03-18 06:36:56.461 xcodebuild[7185:68380] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 395. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
2024-03-18 06:36:56.462 xcodebuild[7185:68380] Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0., NSJSONSerializationErrorIndex=0}
2024-03-18 06:36:56.463 xcodebuild[7185:68380] Writing error result bundle to /var/folders/wh/xbmq9qtx6_3cv4rr7r9ytbtr0000gn/T/ResultBundle_2024-18-03_06-36-0056.xcresult
xcodebuild: error: 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.

Path: /Users/lazizbekfayziev/Desktop/kelechek/ios/Runner.xcodeproj```


**Expected Behavior**
Should run on all OS without a problem.

**Additional Context**
Flutter 3.19.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ba39319843 (10 days ago) • 2024-03-07 15:22:21 -0600
Engine • revision 2e4ba9c6fb
Tools • Dart 3.3.1 • DevTools 2.31.1

Hi @Lazizbek97 ! Thanks for opening an issue 💙

Are you able to run the project in iOS using the following command:

flutter run --flavor development --target lib/main_development.dart

I followed your reproductive steps and I was able to run the app in iOS using the above command. Let me know if this helps 👀

For reference, this is the output of my Flutter doctor:

Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-arm64, locale
    en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.4)
[✓] IntelliJ IDEA Community Edition (version 2023.1.4)
[✓] VS Code (version 1.86.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Hi @Lazizbek97 👋

Given that it looks like there is a solution posted here and there has been no follow up I am going to close this as completed. If this is not the case please feel free to reopen and supply more details.