Repository: flutter
Issue: [tool_crash] FormatException: FormatException: Unexpected character (at line 66, character 3) ']' when building ipa
Labels: c: crash,platform-ios,tool,a: build,has reproducible steps,P2,team-tool,triaged-tool,found in release: 3.19,found in release: 3.22

Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.

## command

flutter build ipa

## exception

FormatException: FormatException: Unexpected character (at line 66, character 3)
  ],
  ^


```
#0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1376:5)
#1      _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:888:13)
#2      _parseJson (dart:convert-patch/convert_patch.dart:35:10)
#3      JsonDecoder.convert (dart:convert/json.dart:610:36)
#4      JsonCodec.decode (dart:convert/json.dart:216:41)
#5      BuildIOSArchiveCommand._parseImageAssetContentsJson (package:flutter_tools/src/commands/build_ios.dart:184:48)
#6      BuildIOSArchiveCommand._validateLaunchImageAssetsAfterArchive (package:flutter_tools/src/commands/build_ios.dart:352:60)
<asynchronous suspension>
#7      BuildIOSArchiveCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:434:49)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1389:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
<asynchronous suspension>
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16     main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>
```

## flutter doctor

```
[32m[✓][39m Flutter (Channel stable, 3.19.2, on macOS 14.4.1 23E224 darwin-arm64, locale zh-Hans-CN)
    [32m•[39m Flutter version 3.19.2 on channel stable at /Users/linbingwu/.fvm/versions/3.19.2
    [32m•[39m Upstream repository https://github.com/flutter/flutter.git
    [32m•[39m Framework revision 7482962148 (5 周前), 2024-02-27 16:51:22 -0500
    [32m•[39m Engine revision 04817c99c9
    [32m•[39m Dart version 3.3.0
    [32m•[39m DevTools version 2.31.1
    [32m•[39m Pub download mirror https://pub.flutter-io.cn
    [32m•[39m Flutter download mirror https://storage.flutter-io.cn

[32m[✓][39m Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    [32m•[39m Android SDK at /Users/linbingwu/Library/Android/sdk
    [32m•[39m Platform android-34, build-tools 33.0.2
    [32m•[39m ANDROID_HOME = /Users/linbingwu/Library/Android/sdk
    [32m•[39m Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    [32m•[39m Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    [32m•[39m All Android licenses accepted.

[32m[✓][39m Xcode - develop for iOS and macOS (Xcode 15.3)
    [32m•[39m Xcode at /Applications/Xcode.app/Contents/Developer
    [32m•[39m Build 15E204a
    [32m•[39m CocoaPods version 1.15.2

[32m[✓][39m Chrome - develop for the web
    [32m•[39m Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[32m[✓][39m Android Studio (version 2022.3)
    [32m•[39m Android Studio at /Applications/Android Studio.app/Contents
    [32m•[39m Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    [32m•[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    [32m•[39m Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[32m[✓][39m VS Code (version 1.87.2)
    [32m•[39m VS Code at /Applications/Visual Studio Code.app/Contents
    [32m•[39m Flutter extension version 3.86.0

[32m[✓][39m Connected device (4 available)
    [32m•[39m 蔡平的iPhone (mobile)    • 00008030-001E246E3A84802E • ios            • iOS 17.4 21E219
    [32m•[39m iPhonelinjie (mobile) • 00008020-000C69EC3CD9002E • ios            • iOS 17.4.1 21E236
    [32m•[39m macOS (desktop)       • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    [32m•[39m Chrome (web)          • chrome                    • web-javascript • Google Chrome 123.0.6312.87

[32m[✓][39m Network resources
    [32m•[39m All expected network resources are available.

[32m•[39m No issues found!
```