• 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: Problem with prebinding and Frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with prebinding and Frameworks


  • Subject: Re: Problem with prebinding and Frameworks
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 5 May 2006 00:34:40 -0400

On May 4, 2006, at 6:26 PM, Julio Bianco wrote:

/usr/bin/ld: warning can't open dynamic library: @loader_path/../ Frameworks/i1C.framework/Versions/A/i1C referenced from: /Users/ jbianco/BuildProducts/Release/TCFwkEyeOne.framework/TCFwkEyeOne (checking for undefined symbols may be affected) (No such file or directory, errno = 2)

...

		|		'->B.framework\
		|				'-> Versions\
		|						'-> A\
		|							'-> Frameworks\
		|									'-> A.framework\
		|											'-> A

Note that the binary path in the message is TCFwkEyeOne.framework/ TCFwkEyeOne - not Versions/A/TCFwkEyeOne. So @loader_path resolves to TCFwkEyeOne.framework- not Versions/A.


If you want to put A.framework in a version-specific subdirectory, you need to set up a symlink at the expected path in Frameworks/ that points to it. It expects to see it there a compile time, so that it can read the install_path from it that will be used to find it at run time.

	B.framework\
		|->Frameworks\
			A.framework -> ../Versions/A/Frameworks/A.framework

The same kind of symbolic linking is how versioning is done. The files under the .framework directory are just symlinks to the latest version in Versions/. When you're linking a new app, the linker is looking under the top-level .frameworks/ and you get the latest version. But the install_name is used at runtime, and that can bypass the symlinks and point directly to a specific version.

That can help avoid the "dll hell" problem by allowing multiple versions of a bundle to exist at the same time, and the apps that link them to link against the specific version they need.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

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


  • Follow-Ups:
    • Re: Problem with prebinding and Frameworks
      • From: Julio Bianco <email@hidden>
References: 
 >Problem with prebinding and Frameworks (From: Julio Bianco <email@hidden>)
 >Re: Problem with prebinding and Frameworks (From: Sherm Pendley <email@hidden>)
 >Re: Problem with prebinding and Frameworks (From: Julio Bianco <email@hidden>)
 >Re: Problem with prebinding and Frameworks (From: Sherm Pendley <email@hidden>)
 >Re: Problem with prebinding and Frameworks (From: Julio Bianco <email@hidden>)

  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Opening and Closing a file in Invisible mode
  • Previous by thread: Re: Problem with prebinding and Frameworks
  • Next by thread: Re: Problem with prebinding and Frameworks
  • Index(es):
    • Date
    • Thread