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
[SR-3957] swift-stdlib-tool-substitute will stop working with Xcode 8.3 #46542
Comments
I don't think it's meant for general use. But @gparker42 owns this tool, so he can speak to any changes necessary. |
build-script does not use swift-stdlib-tool. It currently copies swift-stdlib-tool-substitute into place when building an Xcode-compatible toolchain. Xcode no longer needs a swift-stdlib-tool file in the toolchain so swift-stdlib-tool-substitute will soon be deleted. |
Comment by Dmitry Shevchenko (JIRA) Ah got it, thanks for explanation. The tool is still really useful for third party build systems to perform runtime libraries copy. It would be nice to keep it around. |
You should file a bug report against Xcode. This might be a good candidate for an xcodebuild option. |
Comment by Dmitry Shevchenko (JIRA) Thanks, radar is attached to this bug. |
I'm surprised and a little disappointed to hear this tool has been removed; Facebook's Buck build toolchain interfaces with it in https://github.com/facebook/buck/blob/0da788b8facf970968f29ee8025e671186fbdb85/src/com/facebook/buck/apple/AppleCxxPlatforms.java#L488-L524. We rely upon it as a mechanism for packaging the Swift runtime libraries with an Apple bundle. Removing the tool means additional work before Facebook can support building and packaging apps that use Swift. Is it possible to phase the tool out incrementally? I wasn't expecting it to suddenly be removed. |
dmishe (JIRA User), could you please publish your Radar on https://openradar.appspot.com/page/1? I'd like to duplicate it. |
For anyone looking to duplicate the Radar, here it is: https://openradar.appspot.com/radar?id=5608273688395776 🙂 |
Thanks for all the feedback on this. We hadn't realized how many people were relying on this tool. We're going to reconsider this and see what we can do to fix this. Oh, and you can stop filing duplicate radars now! |
Thanks, @bob-wilson!! I really appreciate the decision to keep it around. I wrote down some of my thoughts on why I think it's nice to have it as utility outside of Xcode and xcodebuild: http://modocache.io/swift-stdlib-tool. Maybe some of those ideas are off the mark; if you have any feedback, I'd really appreciate that too! |
Comment by Dmitry Shevchenko (JIRA) @bob-wilson, the latest Xcode beta again removes this tool again. Is that how it's going be from now on? |
No, it's supposed to be there. We'll take a look. |
Dmitry, are you using this week's Xcode 9 beta 1 (build 9M136h) ? |
Comment by Dmitry Shevchenko (JIRA) That's right. |
The issue with Xcode 9 beta 1 was an internal Apple problem, which we are fixing. I'm going to close this again. |
This is fixed in Xcode 9 beta 2. Thanks for the bug report. |
Additional Detail from JIRA
md5: c1317ed3d53dbd7e882c71c8f60959fc
Issue Description:
Xcode 8.3 beta 2 removed the standalone swift-stdlib-tool binary, in favor of moving the tool into Xcode itself.
That utility is used by this script https://github.com/apple/swift/blob/master/utils/swift-stdlib-tool-substitute, which is a simple wrapper around Xcode version.
In turn, this wrapper is used in a few parts of the build-script, which means that it will stop working when Xcode 8.3 is released.
It seems that swift-stdlib-tool should be open-source and live in the Swift repo.
The text was updated successfully, but these errors were encountered: