beeware / briefcase

Tools to support converting a Python project into a standalone native application.
https://briefcase.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.48k stars 352 forks source link

Fix error on first run after iOS simulator update #1828

Open ashleyplusplus opened 1 month ago

ashleyplusplus commented 1 month ago

Added logic to the JSON parser in subprocess.py to grab everything from the first { forward. This makes sure that it's only parsing- for lack of better phrasing- parseable stuff instead of just trying to parse the entire output, which contains "Install started, 1%... " on the first run after an iOS simulator update. Fixes #780.

PR Checklist:

ashleyplusplus commented 1 month ago

I haven't installed my iOS simulator yet (new laptop), so I'm planning on testing by installing my simulator and running this.

phildini commented 1 month ago

Hoisting up the test failures:


tests/integrations/subprocess/test_json_parser.py::test_json_parser_fail[This is a prologue in my JSON output :( \n\n{"key": "value"}1] FAILED [ 65%]```