Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Library reference problem/question...



marc hoffman wrote:

so i guess that means a framework is either compiled to be deployed externally *or* included in .app bundles, but the app developer cannot simply choose to do either, as he pleases?

You can choose as you please. The way you choose is by changing the install-name of the framework, and perhaps of one or more libs it refers to.



odd design choice, i would have expected the OS to just try a series of locations (such as, in the app bundle, then ~/Library, then /Library...

The OS does try a series of locations, but . and ../Frameworks aren't in that list by default. Read 'man dyld' and note the default values for the XX_PATH env-vars. Also note WHEN it searches each path.


Also, there are security consequences for following an arbitrary path looking for libs, so the OS may want to mitigate some of that exposure rather than follow the gently sloping path to hell.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.