Title: "make testios" fails with Xcode 16+ due to changes in xcresulttool · Issue #126925 · python/cpython · GitHub
Open Graph Title: "make testios" fails with Xcode 16+ due to changes in xcresulttool · Issue #126925 · python/cpython
X Title: "make testios" fails with Xcode 16+ due to changes in xcresulttool · Issue #126925 · python/cpython
Description: As of Xcode 16, Apple has changed the command interface to xcresultool such that the way it is invoked when running the testios recipe in Makefile.pre.in is no longer valid, causing the iOS test step to fail while attempting to extract t...
Open Graph Description: As of Xcode 16, Apple has changed the command interface to xcresultool such that the way it is invoked when running the testios recipe in Makefile.pre.in is no longer valid, causing the iOS test st...
X Description: As of Xcode 16, Apple has changed the command interface to xcresultool such that the way it is invoked when running the testios recipe in Makefile.pre.in is no longer valid, causing the iOS test st...
Opengraph URL: https://github.com/python/cpython/issues/126925
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"make testios\" fails with Xcode 16+ due to changes in xcresulttool","articleBody":"As of Xcode 16, Apple has changed the command interface to `xcresultool` such that the way it is invoked when running the `testios` recipe in `Makefile.pre.in` is no longer valid, causing the iOS test step to fail while attempting to extract the results of the test run.\r\n\r\n```pytb\r\n[...]\r\n# Regardless of success or failure, extract and print the test output\r\nxcrun xcresulttool get --path iOSTestbed.arm64-iphonesimulator.1731824398/arm64-iphonesimulator.xcresult \\\r\n\t\t--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'])\" ) \\\r\n\t\t--format json | \\\r\n\t\t_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'])\"\r\nError: This command is deprecated and will be removed in a future release, --legacy flag is required to use it.\r\nUsage: xcresulttool get object [--legacy] --path \u003cpath\u003e [--id \u003cid\u003e] [--version \u003cversion\u003e] [--format \u003cformat\u003e]\r\n See 'xcresulttool get object --help' for more information.\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n import sys, json; result = json.load(sys.stdin); print(result['actions']['_values'][0]['actionResult']['logRef']['id']['_value'])\r\n ~~~~~~~~~^^^^^^^^^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py\", line 293, in load\r\n return loads(fp.read(),\r\n cls=cls, object_hook=object_hook,\r\n parse_float=parse_float, parse_int=parse_int,\r\n parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py\", line 346, in loads\r\n return _default_decoder.decode(s)\r\n ~~~~~~~~~~~~~~~~~~~~~~~^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py\", line 345, in decode\r\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py\", line 363, in raw_decode\r\n raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\nError: Missing value for '--id \u003cid\u003e'\r\nHelp: --id \u003cid\u003e The ID of the object [optional, assumes rootID if not specified].\r\nUsage: xcresulttool get object [--legacy] --path \u003cpath\u003e [--id \u003cid\u003e] [--version \u003cversion\u003e] [--format \u003cformat\u003e]\r\n See 'xcresulttool get object --help' for more information.\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n import sys, json; result = json.load(sys.stdin); print(result['subsections']['_values'][1]['subsections']['_values'][0]['emittedOutput']['_value'])\r\n ~~~~~~~~~^^^^^^^^^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py\", line 293, in load\r\n return loads(fp.read(),\r\n cls=cls, object_hook=object_hook,\r\n parse_float=parse_float, parse_int=parse_int,\r\n parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/__init__.py\", line 346, in loads\r\n return _default_decoder.decode(s)\r\n ~~~~~~~~~~~~~~~~~~~~~~~^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py\", line 345, in decode\r\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/nad/Projects/PyDev/active/dev/3x/source/Lib/json/decoder.py\", line 363, in raw_decode\r\n raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\nmake: *** [testios] Error 1\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-127592\n* gh-127754\n* gh-129124\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ned-deily","@type":"Person","name":"ned-deily"},"datePublished":"2024-11-17T06:51:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/126925/cpython/issues/126925"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cfd7bb1d-229d-e84f-7468-b13255b77cf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF24:33F365:B5A12F:E9705C:696B2702 |
| html-safe-nonce | e4d1b5a14307775895efd6ee356b991540dbfaddbb6c700ef79fd723cb841917 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjI0OjMzRjM2NTpCNUExMkY6RTk3MDVDOjY5NkIyNzAyIiwidmlzaXRvcl9pZCI6IjE2MjA2Mzc2MzY4NTE4OTM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 349212478224d3137ee729cb95b4b408afc9e485445a33e6ece9e30bada48f78 |
| hovercard-subject-tag | issue:2665400447 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/126925/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48e37a37659c6da22984a95d7bbc88be4f17e784653f88f897a02a051350a33b/python/cpython/issues/126925 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48e37a37659c6da22984a95d7bbc88be4f17e784653f88f897a02a051350a33b/python/cpython/issues/126925 |
| og:image:alt | As of Xcode 16, Apple has changed the command interface to xcresultool such that the way it is invoked when running the testios recipe in Makefile.pre.in is no longer valid, causing the iOS test st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ned-deily |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width