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
dyld: Symbol not found error on 10.14.3 from bottled 0.32.0 #2736
Comments
This issue is expected to homebrew distribution on macOS Mojave 10.14.0-.3 with Xcode 10.1 or earlier.
Another workarounds for homebrew distribution other than installing Xcode 10.2:
|
Ah, so this is a case where the box doesn't have the Swift 5 runtime and the bottle was built without the runtime embedded (on 10.14.4). I wish there was a way to require (at least with better messaging) the Swift 5 Runtime Support for Command Line Tools (public link). One thing I'm confused about, I thought this behavior was only when an app is built with Swift 5, but SwiftLint is configured to build using Swift 4.2. So, it appears that even Swift 4 CLI executables built with Xcode 10.2 require the Swift 5 runtime to be installed? |
SwiftLint's Homebrew bottle for macOS Mojave is created using Swift 5 compiler with |
Thanks for the explanation. The compiler version is what's important. |
Can we close this? |
I'm adding something to the readme about this, then will close. |
Workaround to realm/SwiftLint#2736 Following message will be printed on macOS Mojave 10.14.0-.3 without Swift 5 Runtime Support. ```terminal.sh-session $ brew install swiftlint Warning: Building swiftlint from source: The bottle needs the [Swift 5 Runtime Support for Command Line Tools](https://support.apple.com/kb/DL1998) to be installed on macOS Mojave 10.14.3 or earlier. Alternatively, you can: * Update to macOS 10.14.4 or later * Install Xcode 10.2 or later at `/Applications/Xcode.app` ```
opened: Homebrew/homebrew-core#39446 |
Workaround to realm/SwiftLint#2736 same with Homebrew#39446 Following message will be printed on macOS Mojave 10.14.0-.3 without Swift 5 Runtime Support. ```terminal.sh-session $ brew install sourcekitten Warning: Building sourcekitten from source: The bottle needs the [Swift 5 Runtime Support for Command Line Tools](https://support.apple.com/kb/DL1998) to be installed on macOS Mojave 10.14.3 or earlier. Alternatively, you can: * Update to macOS 10.14.4 or later * Install Xcode 10.2 or later at `/Applications/Xcode.app` ```
New Issue Checklist
Describe the bug
Simply running swiftlint 0.32.0 on macOS 10.14.3 when installed via the Homebrew bottle.
Complete output when running SwiftLint, including the stack trace and command used
Workaround
This appears to be an issue with the Homebrew bottle for Mojave. Building from source using Xcode 10.1 is sufficient to resolve the issue.
Environment
If so, paste their relative paths and respective contents.
xcode-select -p
)? 10.1/Applications/Xcode.app -> /Applications/Xcode-10.1.app
Related
I noticed that Carthage 0.33.0 ran into this same issue last month. It sounds like having 10.2 installed at
/Applications/Xcode.app
resolves this issue on 10.14.0-.3, but I haven't verified this.I'm interested in the solution to this as packaging macOS CLI commands is now more complicated with Swift 5 and I'm waiting to update mas until we figure out how to deal with this issue.
The text was updated successfully, but these errors were encountered: