
Originally Posted by
radical
I assume they are handled just like any other dynamically loaded library. Not sure this applies to the iPhone, but you can change the path's for OS X.
From "man dyld" :
...
Is it possible to do a static link when compiling from xcode? I would guess not

rad
I can report a partial success using the specified environment variables.
I copied the files from Aspen1.2.sdk/System/Library und Aspen1.2.sdk/usr/lib to
/var/root/Aspen/{Library,usr}. In addition I hat do symlink all *.dylb's in the Frameworks to usr/lib because dyld was unable to locate them inside the frameworks.
Then I did the following:
Code:
# export DYLD_FRAMEWORK_PATH=/var/root/Aspen/Library
# export DYLD_LIBRARY_PATH=/var/root/Aspen/usr/lib
# /Applications/hello.app/hello
dyld: Symbol not found: ___kCFVolatileDomainCallBacks
Referenced from: /System/Library/Frameworks/Foundation.framework/Foundation
Expected in: /var/root/Aspen/Library/Frameworks/CoreFoundation.framework/CoreFoundation
zsh: trace trap /Applications/hello.app/hello
As you can see dyld gets past the ObjC part but encounters some relocation error in the core Frameworks.
This may also be a result of my quick-hack-style testing attempt but at least it looks like running 1.2.0 apps with a seperate library and framework root is not totally impossible
Bookmarks