Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
As of Xcode 16, Apple has changed the command interface toxcresultool such that the way it is invoked when running thetestios recipe inMakefile.pre.in is no longer valid, causing the iOS test step to fail while attempting to extract the results of the test run.
[...]# Regardless of success or failure, extract and print the test outputxcrun xcresulttool get --path iOSTestbed.arm64-iphonesimulator.1731824398/arm64-iphonesimulator.xcresult \--id $( xcrun xcresulttool get --path iOSTestbed.arm64-iphonesimulator.1731824398/arm64-iphonesimulator.xcresult --format json | _PYTHON_PROJECT_BASE=/Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-ios-simulator _PYTHON_HOST_PLATFORM=ios-13.0-arm64-iphonesimulator PYTHONPATH=../Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__ios_arm64-iphonesimulator _PYTHON_SYSCONFIGDATA_PATH=/Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-ios-simulator/build/lib.ios-13.0-arm64-iphonesimulator-3.14 /Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-darwin/root-arm64-apple-darwin/bin/python3 -c "import sys, json; result = json.load(sys.stdin); print(result['actions']['_values'][0]['actionResult']['logRef']['id']['_value'])" ) \--format json | \_PYTHON_PROJECT_BASE=/Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-ios-simulator _PYTHON_HOST_PLATFORM=ios-13.0-arm64-iphonesimulator PYTHONPATH=../Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__ios_arm64-iphonesimulator _PYTHON_SYSCONFIGDATA_PATH=/Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-ios-simulator/build/lib.ios-13.0-arm64-iphonesimulator-3.14 /Users/nad/Projects/PyDev/active/dev/3x/source/build-arm64-apple-darwin/root-arm64-apple-darwin/bin/python3 -c "import sys, json; result = json.load(sys.stdin); print(result['subsections']['_values'][1]['subsections']['_values'][0]['emittedOutput']['_value'])"Error:This command is deprecated and will be removed in a future release, --legacy flag is required to use it.Usage:xcresulttool get object [--legacy] --path <path> [--id <id>] [--version <version>] [--format <format>] See 'xcresulttool get object --help' for more information.Traceback (most recent call last): File"<string>", line1, in<module>import sys, json; result = json.load(sys.stdin);print(result['actions']['_values'][0]['actionResult']['logRef']['id']['_value'])~~~~~~~~~^^^^^^^^^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py", line293, inloadreturn loads(fp.read(),cls=cls, object_hook=object_hook, parse_float=parse_float, parse_int=parse_int, parse_constant=parse_constant, object_pairs_hook=object_pairs_hook,**kw) File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py", line346, inloadsreturn _default_decoder.decode(s)~~~~~~~~~~~~~~~~~~~~~~~^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py", line345, indecode obj, end=self.raw_decode(s,idx=_w(s,0).end())~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py", line363, inraw_decoderaise JSONDecodeError("Expecting value", s, err.value)fromNonejson.decoder.JSONDecodeError:Expecting value: line 1 column 1 (char 0)Error:Missing value for '--id <id>'Help: --id <id> The ID of the object [optional, assumes rootID if not specified].Usage:xcresulttool get object [--legacy] --path <path> [--id <id>] [--version <version>] [--format <format>] See 'xcresulttool get object --help' for more information.Traceback (most recent call last): File"<string>", line1, in<module>import sys, json; result = json.load(sys.stdin);print(result['subsections']['_values'][1]['subsections']['_values'][0]['emittedOutput']['_value'])~~~~~~~~~^^^^^^^^^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py", line293, inloadreturn loads(fp.read(),cls=cls, object_hook=object_hook, parse_float=parse_float, parse_int=parse_int, parse_constant=parse_constant, object_pairs_hook=object_pairs_hook,**kw) File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py", line346, inloadsreturn _default_decoder.decode(s)~~~~~~~~~~~~~~~~~~~~~~~^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py", line345, indecode obj, end=self.raw_decode(s,idx=_w(s,0).end())~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py", line363, inraw_decoderaise JSONDecodeError("Expecting value", s, err.value)fromNonejson.decoder.JSONDecodeError:Expecting value: line 1 column 1 (char 0)make:*** [testios] Error 1