Title: iOS multi-arch simulator framework duplicates libPython dylib · Issue #146498 · python/cpython · GitHub
Open Graph Title: iOS multi-arch simulator framework duplicates libPython dylib · Issue #146498 · python/cpython
X Title: iOS multi-arch simulator framework duplicates libPython dylib · Issue #146498 · python/cpython
Description: Bug description: The XCframework utility script that is used to process the dylibs in the Python standard library does two things: Copies the standard library from the XCframework location in the Xcode project into the app Processes all ...
Open Graph Description: Bug description: The XCframework utility script that is used to process the dylibs in the Python standard library does two things: Copies the standard library from the XCframework location in the X...
X Description: Bug description: The XCframework utility script that is used to process the dylibs in the Python standard library does two things: Copies the standard library from the XCframework location in the X...
Opengraph URL: https://github.com/python/cpython/issues/146498
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS multi-arch simulator framework duplicates libPython dylib","articleBody":"### Bug description:\n\nThe XCframework utility script that is used to process the dylibs in the Python standard library does two things:\n\n1. Copies the standard library from the XCframework location in the Xcode project into the app\n2. Processes all libraries in the `lib/python3.x` folder, and turns them into frameworks.\n\nIf you build a thin simulator framework (i.e., a single architecture), it explicitly excludes the libPython dylib from step (1). However, this isn't done for a multi-architecture simulator framework. This historically wasn't necessary, because the libPython is platform specific, and was contained in the `lib-\u003carch\u003e` folder. \n\nHowever, as a result of #141692, a multi-architecture framework now includes a lib folder that has a libpython dylib. This means step (1) now copies. By introducing a symlink in the lib folder, the util script now has two problems:\n\n1. There's content in the `lib` folder that will be rejected by the App Store validation process\n2. The util script breaks in such a way that it doesn't find the `python3.X` folder that needs to be processed in step (2).\n\nThis problem can be seen by building a *full* framework (i.e., `python Apple ci --slow-ci`) - a handful of tests will fail because `.origin` files for modules in the standard library aren't written. It doesn't affect the \"--fast-ci\" path (which is what GitHub Actions runs), as that only generates a \"thin\" framework.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146499\n* gh-146502\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/freakboy3742","@type":"Person","name":"freakboy3742"},"datePublished":"2026-03-26T22:50:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/146498/cpython/issues/146498"}
| 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:f068ba9e-8172-31ab-0b28-b9fbc7c42e00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8428:256A00:256051:32A0E6:6A522704 |
| html-safe-nonce | 5a621315e863496d92eb73048b8b2e48b437e42e1fc5901bbb9e5111f3ef2339 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDI4OjI1NkEwMDoyNTYwNTE6MzJBMEU2OjZBNTIyNzA0IiwidmlzaXRvcl9pZCI6IjQ1NTQxMTU3OTMyNDQyNjgyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e0bc52b2a8a0fb04882ff7335897429eb54043765541a3d8d19162890639661f |
| hovercard-subject-tag | issue:4147828513 |
| 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/146498/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f821b2e70af497a3f820ae0a2ecff3d48370552c9416a1182c031634f1330a7c/python/cpython/issues/146498 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f821b2e70af497a3f820ae0a2ecff3d48370552c9416a1182c031634f1330a7c/python/cpython/issues/146498 |
| og:image:alt | Bug description: The XCframework utility script that is used to process the dylibs in the Python standard library does two things: Copies the standard library from the XCframework location in the X... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | freakboy3742 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width