Comments (3)
Thanks for the followup, @mg186 . Alas, after further investigation, it turns out that this doesn't even appear possible to bundle libs like /usr/lib/libc++.1.dylib
, because, as of Big Sur, the file for this doesn't actually exist in the filesystem, it's handled by the linker cache! From an Apple Developer Forum post:
New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic
linker cache of all system-provided libraries. As part of this change,
copies of dynamic libraries are no longer present on the filesystem.
Code that attempts to check for dynamic library presence by looking for a
file at a path or enumerating a directory will fail. Instead, check for
library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)
So I'm going to give up on using macdyllibbundler
to try and address the problem, and just live with doing separate builds on macOS 11 and macOS 12, and shipping separate binaries. (Or possibly just shipping the macOS 11 binary if it runs on macOS 12).
Feel free to close this issue.
from macdylibbundler.
Hi, I have very little time to spend on dylibbundler myself, however pull requests are always welcome so long that they are well-tested to avoid breaking stuff
from macdylibbundler.
So I'm going to give up on using
macdyllibbundler
to try and address the problem, and just live with doing separate builds on macOS 11 and macOS 12, and shipping separate binaries. (Or possibly just shipping the macOS 11 binary if it runs on macOS 12
You should be fine with targeting macOS 11 (or even older, depending on needed frameworks/features) as per Apple, "each release of macOS strives to be binary compatible with applications built using [older SDKs]"(https://developer.apple.com/library/archive/technotes/tn2456/_index.html).
from macdylibbundler.
Related Issues (20)
- bundling qemu doesn't rewrite libhogweed libnettle deps correctly HOT 3
- Link with unversioned dylibs HOT 3
- Not Skipping Request for Library Location Request When the Prefix is Suposed to be Ignored
- New build failure, undefined symbols HOT 3
- Automatic release uploading broken
- Processed app crashes HOT 5
- Failed at a barebone example. HOT 6
- Regression somewhere after 9cf053f8b399512e12d7931fa24f466057e58044 HOT 7
- dylibbundler failed on macOS 11 (beta) HOT 5
- dylibbundler can't works with application + last version of libcurl HOT 2
- Can't build dylibbundler - missing PATH_MAX HOT 5
- Signed/notarized dylibs supported? HOT 2
- Tag and release so Homebrew can pick it up? HOT 3
- Error fixing RPATH on universal binary dylib
- Need ad-hoc signing for moved libraries since perhpas macOS 12.1 Monterey HOT 1
- Fix identified. Missing "/" on path concatenation. HOT 3
- dylibbundler fails when building widelands on M1 Mac.
- dylibbundler doesn't rewrite paths correctly when using alternative library search path
- copy failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macdylibbundler.