René's URL Explorer Experiment


Title: iOS simulator builds get the device -mios-version-min flag, breaking library detection · Issue #156115 · python/cpython · GitHub

Open Graph Title: iOS simulator builds get the device -mios-version-min flag, breaking library detection · Issue #156115 · python/cpython

X Title: iOS simulator builds get the device -mios-version-min flag, breaking library detection · Issue #156115 · python/cpython

Description: Bug report Bug description: configure appends the device deployment-target flag to every iOS build, simulator included: dnl Add the compiler flag for the iOS minimum supported OS version. AS_CASE([$ac_sys_system], [iOS], [ AS_VAR_APPEND(...

Open Graph Description: Bug report Bug description: configure appends the device deployment-target flag to every iOS build, simulator included: dnl Add the compiler flag for the iOS minimum supported OS version. AS_CASE([...

X Description: Bug report Bug description: configure appends the device deployment-target flag to every iOS build, simulator included: dnl Add the compiler flag for the iOS minimum supported OS version. AS_CASE([...

Opengraph URL: https://github.com/python/cpython/issues/156115

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS simulator builds get the device -mios-version-min flag, breaking library detection","articleBody":"# Bug report\n\n### Bug description:\n\n`configure` appends the *device* deployment-target flag to every iOS build, simulator included:\n\n```m4\ndnl Add the compiler flag for the iOS minimum supported OS version.\nAS_CASE([$ac_sys_system],\n  [iOS], [\n    AS_VAR_APPEND([CFLAGS], [\" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}\"])\n    AS_VAR_APPEND([LDFLAGS], [\" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}\"])\n  ],\n)\n```\n\n`-mios-version-min` is an alias for `-miphoneos-version-min`, so it sets the platform to iOS *device*. Against the simulator SDK the linker then refuses everything it resolves there:\n\n```\nld: building for 'iOS', but linking in dylib (.../iPhoneSimulator.sdk/usr/lib/libiconv.2.tbd) built for 'iOS-simulator'\n```\n\n`configure` already knows which one it is — `_host_device` is derived from the host triple at `configure.ac:794` and is `simulator` here — but the flag ignores it.\n\nThis is masked when the compiler is invoked through the wrappers in `Platforms/Apple/iOS/Resources/bin`, because those pass `--target=arm64-apple-ios-simulator`, which pins the platform and makes the later flag inert. It bites anyone driving clang directly with `-isysroot`, which is the usual arrangement for a cross-compiling build system.\n\nThe failure is quiet rather than loud. Configuring `main` for the simulator this way still exits 0, but 17 conftest links fail in `config.log` and features are misdetected:\n\n```diff\n$ diff \u003c(unpatched pyconfig.h) \u003c(patched pyconfig.h)\n\u003c /* #undef HAVE_ICONV */\n\u003c /* #undef HAVE_LIBSQLITE3 */\n\u003c /* #undef HAVE_ZLIB_COPY */\n\u003c /* #undef PY_SQLITE_HAVE_SERIALIZE */\n---\n> #define HAVE_ICONV 1\n> #define HAVE_LIBSQLITE3 1\n> #define HAVE_ZLIB_COPY 1\n> #define PY_SQLITE_HAVE_SERIALIZE 1\n```\n\nIf any library ends up on `LDFLAGS` before the first compiler check, it fails outright instead, with `configure: error: C compiler cannot create executables`.\n\nReproducer, on macOS with Xcode:\n\n```sh\nSDK=$(xcrun --sdk iphonesimulator --show-sdk-path)\nCC=\"$(xcrun --sdk iphonesimulator -f clang)\" \\\nCPP=\"$CC -E\" CFLAGS=\"-isysroot $SDK -arch arm64\" LDFLAGS=\"-isysroot $SDK -arch arm64\" \\\n../configure --host=aarch64-apple-ios12.0-simulator --build=$(../config.guess) \\\n             --enable-framework --with-build-python=...\ngrep \"^ld: building for\" config.log\n```\n\nSelecting `-mios-simulator-version-min` when `_host_device` is `simulator` fixes it; the device build is unchanged. PR to follow.\n\n### CPython versions tested on:\n\nCPython main\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156116\n* gh-156211\n* gh-156212\n* gh-156213\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/clementperon","@type":"Person","name":"clementperon"},"datePublished":"2026-08-20T14:02:20Z","url":"https://github.com/python/cpython/issues/156115"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:085f27ec-0aab-a5c6-6748-bbc5f558de90
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DFA:1AE20C:3BB5519:4B9BD07:6B01FA1D
html-safe-nonceac252d01c130c30dfa5d4d79803ae11182e2682dfd6a9866908260f06967c295
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REZBOjFBRTIwQzozQkI1NTE5OjRCOUJEMDc6NkIwMUZBMUQiLCJ2aXNpdG9yX2lkIjoiODE4NjEyMTUzMjQwMjE3MDM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8d6af3bcc6d994ab49d149fa6004c28c5113107fc9d86ca96f7b8ca0bb7347a3
hovercard-subject-tagissue:5204243665
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/156115/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d84a1da746c650e2f3630ba4dbd88a538185bae098161577568b26ed94b082d2/python/cpython/issues/156115
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d84a1da746c650e2f3630ba4dbd88a538185bae098161577568b26ed94b082d2/python/cpython/issues/156115
og:image:altBug report Bug description: configure appends the device deployment-target flag to every iOS build, simulator included: dnl Add the compiler flag for the iOS minimum supported OS version. AS_CASE([...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameclementperon
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/156115#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F156115
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F156115
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/156115
Reloadhttps://github.com/python/cpython/issues/156115
Reloadhttps://github.com/python/cpython/issues/156115
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/156115
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/156115
iOS simulator builds get the device -mios-version-min flag, breaking library detectionhttps://github.com/python/cpython/issues/156115#top
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/clementperon
clementperonhttps://github.com/clementperon
on Aug 20, 2026https://github.com/python/cpython/issues/156115#issue-5204243665
gh-156115: Use the simulator deployment-target flag for iOS simulator builds #156116https://github.com/python/cpython/pull/156116
[3.15] gh-156115: Use the simulator deployment-target flag for iOS simulator builds (GH-156116) #156211https://github.com/python/cpython/pull/156211
[3.14] gh-156115: Use the simulator deployment-target flag for iOS simulator builds (GH-156116) #156212https://github.com/python/cpython/pull/156212
[3.13] gh-156115: Use the simulator deployment-target flag for iOS simulator builds (GH-156116) #156213https://github.com/python/cpython/pull/156213
aiskhttps://github.com/aisk
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
on Aug 20, 2026https://github.com/python/cpython/issues/156115#event-29753275383
https://github.com/freakboy3742
freakboy3742https://github.com/freakboy3742
on Aug 21, 2026https://github.com/python/cpython/issues/156115#issuecomment-5364690102
freakboy3742https://github.com/freakboy3742
on Aug 22, 2026https://github.com/python/cpython/issues/156115#event-29836807192
gh-156115: Use the simulator deployment-target flag for iOS simulator…https://github.com/python/cpython/commit/d856402e7176e5a03c5c578f0efc1be968be3257
gh-156115https://github.com/python/cpython/issues/156115
d856402https://github.com/python/cpython/commit/d856402e7176e5a03c5c578f0efc1be968be3257
[3.13] gh-156115: Use the simulator deployment-target flag for iOS si…https://github.com/python/cpython/commit/5f6487acc6b8f751d29234cb8d11fb40bd9b84d8
gh-156115https://github.com/python/cpython/issues/156115
5f6487ahttps://github.com/python/cpython/commit/5f6487acc6b8f751d29234cb8d11fb40bd9b84d8
[3.14] gh-156115: Use the simulator deployment-target flag for iOS si…https://github.com/python/cpython/commit/c12f822e47bef4fec07d2c73356038b0978e5eb0
gh-156115https://github.com/python/cpython/issues/156115
c12f822https://github.com/python/cpython/commit/c12f822e47bef4fec07d2c73356038b0978e5eb0
hugovkhttps://github.com/hugovk
on Aug 29, 2026https://github.com/python/cpython/issues/156115#event-30206873083
[3.15] gh-156115: Use the simulator deployment-target flag for iOS si…https://github.com/python/cpython/commit/928060bbd58b882122ab9dacc5d7d1518400fda6
gh-156115https://github.com/python/cpython/issues/156115
928060bhttps://github.com/python/cpython/commit/928060bbd58b882122ab9dacc5d7d1518400fda6
hugovkhttps://github.com/hugovk
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 29, 2026https://github.com/python/cpython/issues/156115#event-30206907385
freakboy3742https://github.com/freakboy3742
on Oct 2, 2026https://github.com/python/cpython/issues/156115#event-32298466014
[3.13] pythongh-156115: Use the simulator deployment-target flag for …https://github.com/freakboy3742/cpython/commit/82c7a6045347599c2da350851c69fd010174c717
pythongh-156115https://github.com/python/cpython/issues/156115
82c7a60https://github.com/freakboy3742/cpython/commit/82c7a6045347599c2da350851c69fd010174c717
[3.12] pythongh-156115: Use the simulator deployment-target flag for …https://github.com/freakboy3742/cpython/commit/38702d1bbd2fe2ce18170c7c6e44ab0c33921e40
pythongh-156115https://github.com/python/cpython/issues/156115
38702d1https://github.com/freakboy3742/cpython/commit/38702d1bbd2fe2ce18170c7c6e44ab0c33921e40
[3.11] pythongh-156115: Use the simulator deployment-target flag for …https://github.com/freakboy3742/cpython/commit/b4f2776d3cc9b212195b8aa8df78d9c7cc2dbc96
pythongh-156115https://github.com/python/cpython/issues/156115
b4f2776https://github.com/freakboy3742/cpython/commit/b4f2776d3cc9b212195b8aa8df78d9c7cc2dbc96
[3.14] pythongh-156115: Use the simulator deployment-target flag for …https://github.com/freakboy3742/cpython/commit/1d56c161e2d545139b652fa345ef05097acddc60
pythongh-156115https://github.com/python/cpython/issues/156115
1d56c16https://github.com/freakboy3742/cpython/commit/1d56c161e2d545139b652fa345ef05097acddc60
freakboy3742https://github.com/freakboy3742
on Oct 12, 2026https://github.com/python/cpython/issues/156115#event-33015284172
[3.12] pythongh-156115: Use the simulator deployment-target flag for …https://github.com/freakboy3742/cpython/commit/01c579c6b17dfa2a1e48220752b93121aaa29875
pythongh-156115https://github.com/python/cpython/issues/156115
01c579chttps://github.com/freakboy3742/cpython/commit/01c579c6b17dfa2a1e48220752b93121aaa29875
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/156115
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/156115
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.