• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to understand executable bundle loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to understand executable bundle loading


  • Subject: Re: Trying to understand executable bundle loading
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 8 Aug 2006 10:02:48 -0700

Craig Morris wrote:

>If I actually copy mylib.dylib to /usr/local/lib, the program runs fine,
>but I suspect it has now loaded two different copies of that code and I
>really don't want the dylib to live there.

I suspect the problem is your lib's embedded name.  Use the 'otool'
command, which has several options, to list the names of the lib itself and
the other libs it references.  See 'man otool'.

If you don't change the Installation Directory build setting, I think
"/usr/local/lib" is the default value.  That is then written to the lib
when it's linked.  I change mine to ".", but my target isn't a bundle.

If the above is completely wrong, I expect someone will quickly correct me.

You can probably find more info on the correct bundle build settings by
searching ADC for keywords like bundle and executable.

  -- GG


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trying to understand executable bundle loading
      • From: Craig Morris <email@hidden>
  • Prev by Date: Re: Where May I Download Xcode 2.4?
  • Next by Date: Re: Where May I Download Xcode 2.4?
  • Previous by thread: Trying to understand executable bundle loading
  • Next by thread: Re: Trying to understand executable bundle loading
  • Index(es):
    • Date
    • Thread