-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Python doesn't find Xcode 7 SDK stub libraries #69323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In Xcode 7, Apple is replacing many of the .dylibs in SDKROOT with textual stubs. 1 These files exist on disk with filenames like: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.tbd They are short YAML documents that look like this: 2 The same linker invocation that has always worked will continue to work with Xcode 7 (i.e. you still pass distutils should treat the .tbd files as a "real" library so that compiler.find_library_file succeeds and setup.py will proceed to attempt to build the extension modules. The attached diff applies against the 3.5.0 release and allows extension modules to be built against Xcode 7 without installing the Command-Line Tools package. If anyone is experiencing this issue, a workaround is to install the Xcode Command Line Tools package with |
Thanks for the analysis and the patches, Tim. Now that Xcode 7 is released, we'll need to ensure we fully support the new stubs. But, as you note, the workaround as always is to make sure that the current Command Line Tools are installed, the configuration that we test with. |
We should update the devguide to specify that the command-line tools need to be installed and either explain or point to documentation on how to install the tools. |
New changeset 59d797915dca by Ned Deily in branch '2.7': New changeset b0490b8af7aa by Ned Deily in branch '3.5': New changeset db6c1308eb31 by Ned Deily in branch 'default': |
New changeset 157eb9d40bf9 by Ned Deily in branch '2.7': New changeset 61752c7ea9c7 by Ned Deily in branch '3.5': New changeset 2c4448bbed1f by Ned Deily in branch 'default': |
I've committed Tim's patches with some additional comments for release in 2.7.12, 3.5,2, and 3.6.0 and have added a note about using 'xcode-select --install' to the Mac/README files. (The Developer's Guide already documents this.) Thanks again, Tim. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: