Homebrew breaks Mac app deployment because libc++abi.1.dylib is missing #3038
Replies: 2 comments 2 replies
-
Can you reproduce this without |
Beta Was this translation helpful? Give feedback.
-
See also #2823. My view is that this is a bug in MacDeployQt: it seems to assume that when it finds a library with an absolute path for its install name (e.g. This is true a lot of the time, so it's not an unreasonable heuristic. However, the OS does not guarantee this, and is often violated in the case of Homebrew, so it's a bad heuristic there. You can fix this by filing an issue upstream (though it might require backporting for Qt5), or using
|
Beta Was this translation helpful? Give feedback.
-
We're developing a Mac app using Qt 5.15, and packaging it for deployment using a script that calls Qt's macdeployqt tool.
The resultant app bundle is incomplete on my system, where LLVM is managed by Homebrew. It crashes on launch with the following in the log:
And indeed all the other dylibs were present in the app bundle, but libc++abi.1.dylib is missing. If I copy that one into the bundle, the app runs.
I then uninstalled Homebrew's LLVM and ran the same script to build and deploy the app; it launches and runs.
I found discussions in other issue reports that imply that Homebrew is doing something funky with these libs (although I don't fully understand the issue under discussion): Homebrew/homebrew-core#3087
Can anyone offer insight here? This seems like a bug.
Beta Was this translation helpful? Give feedback.
All reactions