Skip to content

Commit

Permalink
Revert workaround for #569
Browse files Browse the repository at this point in the history
The workaround is no longer necessary and caused problems when
building with Command Line Tools instead of Xcode
  • Loading branch information
ronaldoussoren committed May 18, 2024
1 parent 7a6c633 commit 6a799d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 7 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ Version 10.3
PyObjC does at this time not support the experimental free threading
support in Python 3.13.

* :issue:`569`: Removed the workaround for a bug in Xcode 15.0

The workaround is no longer necessary, and caused problems when
building with the Command Line Tools development tools from Apple.

* Updated SDK bindings for macOS 14.5

* A minor change in the (currently private) tooling I use for
collecting the raw metadata resulted in minor fixes to the framework
bindings, in particular for metadata for a number of block typed
arguments and return values.
bindings, in particular for metadata for a number of block and function
typed arguments and return values.

* :issue:`275`: It is now possible to create instances of Objective-C
classes by calling the class, e.g. ``NSObject()`` instead of
Expand Down
10 changes: 0 additions & 10 deletions pyobjc-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,16 +594,6 @@ def finalize_options(self):
CFLAGS.append("-DNO_OBJC2_RUNTIME")
EXT_CFLAGS.append("-DNO_OBJC2_RUNTIME")

lines = subprocess.check_output(
["xcodebuild", "-version"], text=True
).splitlines()
if lines[0].startswith("Xcode"):
xcode_vers = int(lines[0].split()[-1].split(".")[0])
if xcode_vers >= 15:
for var in (OBJC_LDFLAGS,):
print("Use old linker with Xcode 15 or later")
var.append("-Wl,-ld_classic")

def run(self):
verify_platform()

Expand Down

0 comments on commit 6a799d2

Please sign in to comment.