• 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: including library in .app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including library in .app


  • Subject: Re: including library in .app
  • From: Suzanne Archibald <email@hidden>
  • Date: Sat, 1 Feb 2003 17:18:52 -0500

I've been going thru the same issue, and found a solution...

you need to use install_name_tool twice, once on libxml, and once on your executable

the shell script i have for this is:

#!/bin/sh

install_name_tool -change ./libxml.framework/Versions/2.4.26/libxml @executable_path/../Frameworks/libxml.framework/Versions/2.4.26/libxml build/SJabber.app/Contents/MacOS/SJabber

install_name_tool -id @executable_path/../Frameworks/libxml.framework/Versions/2.4.26/libxml build/SJabber.app/Contents/Frameworks/libxml.framework/libxml



The first step replaces the reference to ./libxml.framework/Versions/2.4.26/libxml with an executable based relative path

The second step makes sure that the libxml name matches this expected name.

Presto, with this it works :) Make sure that if you do this as a shell script build step, that its the last item in the list, of course.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: including library in .app
  • Next by Date: HI Guidelines: rounded text fields
  • Previous by thread: Re: Oddness with PB
  • Next by thread: Re: Determining if images are roughly equal
  • Index(es):
    • Date
    • Thread