Open norio-nomura opened 5 years ago
Maybe the rpath isn't set up correctly for Command Line Tools installs?
Maybe the rpath isn't set up correctly for Command Line Tools installs?
Yes, it has rpathes assuming placed inside bundle of Xcode.
$ otool -l /Library/Developer/CommandLineTools/usr/bin/swift-package
…
Load command 26
cmd LC_RPATH
cmdsize 32
path /usr/lib/swift (offset 12)
Load command 27
cmd LC_RPATH
cmdsize 56
path @executable_path/../../../../../Frameworks (offset 12)
Load command 28
cmd LC_RPATH
cmdsize 64
path @executable_path/../../../../../SharedFrameworks (offset 12)
It should have rpathes like OSS Toolchains:
$ otool -l $(xcrun --toolchain org.swift.5120190417a --find swift-package)
…
Load command 27
cmd LC_RPATH
cmdsize 136
path /Users/buildnode/jenkins/workspace/oss-swift-5.1-package-osx/build/buildbot_osx/swift-macosx-x86_64/lib/swift/macosx (offset 12)
Load command 28
cmd LC_RPATH
cmdsize 56
path @executable_path/../lib/swift/macosx (offset 12)
Load command 29
cmd LC_RPATH
cmdsize 56
path @executable_path/../lib/swift/pm/llbuild (offset 12)
Environment
Command Line Tools (macOS 10.14) for Xcode 10.2.1Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 1aeea099d3b2b37888ab832703422247Issue Description: