1 | | The Command Line Tools are installed and \\ |
2 | | I have also tried using a package for Swift. |
| 1 | I have the CommandLineTools installed. \\ |
| 2 | \\ |
| 3 | \\ |
| 4 | RPATH can be changed with command: \\ |
| 5 | {{{sudo install_name_tool -add_rpath /usr/lib/swift $(which mpv)}}} \\ |
| 6 | \\ |
| 7 | With the lib dir in RPATH I get this error: \\ |
| 8 | {{{ |
| 9 | dyld: Symbol not found: __T0So8NSWindowC5LevelV6AppKit01_cdD23NumericRawRepresentableAEWP |
| 10 | Referenced from: /opt/local/bin/mpv |
| 11 | Expected in: /usr/lib/swift/libswiftAppKit.dylib |
| 12 | in /opt/local/bin/mpv |
| 13 | zsh: abort mpv |
| 14 | }}} |
| 15 | that is similar to what is reported here: \\ |
| 16 | https://github.com/mpv-player/mpv/issues/9714 \\ |
| 17 | \\ |
| 18 | \\ |
| 19 | The libraries are from a support package: |
| 20 | {{{ |
| 21 | pkgutil --file-info /usr/lib/swift/libswiftAppKit.dylib |
| 22 | volume: / |
| 23 | path: /usr/lib/swift/libswiftAppKit.dylib |
4 | | https://support.apple.com/kb/dl1998 |
| 25 | pkgid: com.apple.pkg.SwiftRuntimeForCommandLineTools |
| 26 | pkg-version: 10.2.0.0.1.1552586384 |
| 27 | install-time: 1645223925 |
| 28 | uid: 0 |
| 29 | gid: 0 |
| 30 | mode: 755 |
| 31 | }}} |
| 32 | that can be downloaded here from Apple: \\ |
| 33 | https://support.apple.com/kb/dl1998 \\ |
| 34 | \\ |
| 35 | \\ |
| 36 | The libraries in {{{Xcode.app}}} and {{{/usr/lib/swift}}} are different: \\ |
| 37 | {{{ |
| 38 | diff /usr/lib/swift/libswiftAppKit.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib |
| 39 | Binary files /usr/lib/swift/libswiftAppKit.dylib and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftAppKit.dylib differ |
| 40 | }}} |
| 41 | \\ |
| 42 | I use Xcode 9.4.1 plus Swift 4.1.2 now. \\ |
| 43 | Let me know if you need other details. \\ |