... | ... | @@ -70,8 +70,8 @@ When you run a program which was linked against a framework, it is loaded by the |
|
|
- `/System/Library/Frameworks`
|
|
|
- If the framework name starts with `"@executable_path"` or `"@loader_path"`, replace it with, e.g., the full path to the application bundle:
|
|
|
|
|
|
- [ http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html](http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html)
|
|
|
- [ http://www.cocoadev.com/index.pl?LinkingAuxiliaryExecutablesToEmbeddedFramework](http://www.cocoadev.com/index.pl?LinkingAuxiliaryExecutablesToEmbeddedFramework)
|
|
|
- [http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html](http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html)
|
|
|
- [http://www.cocoadev.com/index.pl?LinkingAuxiliaryExecutablesToEmbeddedFramework](http://www.cocoadev.com/index.pl?LinkingAuxiliaryExecutablesToEmbeddedFramework)
|
|
|
|
|
|
|
|
|
Note that the `-F` is irrelevant to runtime behavior! (Apple's docs are not at all clear, but that's definitely how it works.) Also, note `$HOME/Library/Frameworks` is searched by default at runtime, despite what `dyld`'s manpage says.
|
... | ... | @@ -79,5 +79,5 @@ Note that the `-F` is irrelevant to runtime behavior! (Apple's docs are not at a |
|
|
|
|
|
We've checked the source of dyld.cpp and tested most of the above behavior to confirm; you can download it at the following locations (requires free Apple ID registration). See especially the functions `load` and `loadPhase0, loadPhase1, ..., loadPhase5`.
|
|
|
|
|
|
- [ Download the source of any Darwin releases](http://www.opensource.apple.com/darwinsource/)
|
|
|
- [ Direct link to dyld.cpp](http://www.opensource.apple.com/darwinsource/10.5/dyld-95.3/src/dyld.cpp) |
|
|
\ No newline at end of file |
|
|
- [Download the source of any Darwin releases](http://www.opensource.apple.com/darwinsource/)
|
|
|
- [Direct link to dyld.cpp](http://www.opensource.apple.com/darwinsource/10.5/dyld-95.3/src/dyld.cpp) |
|
|
\ No newline at end of file |