# Bug report ### Bug description: You meant TARGET_OS_IPHONE and TARGET_OS_SIMULATOR, so checking the negation was always true. ### CPython versions tested on: 3.15 ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-142723 <!-- /gh-linked-prs -->