• 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: Magic key for IB palettes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Magic key for IB palettes?


  • Subject: Re: Magic key for IB palettes?
  • From: Ryan Britton <email@hidden>
  • Date: Tue, 14 Mar 2006 13:30:10 -0800

You need to change the library path referenced by the IB bundle. I don't think there's a build setting you can do this with, but you can do this with install_name_tool in a "Run Script" build phase.

Here's an example of one I use to embed the DotMacKit framework:
/usr/bin/install_name_tool -change @executable_path/../Frameworks/ DotMacKit.framework/Versions/A/DotMacKit @loader_path/../Frameworks/ DotMacKit.framework/Versions/A/DotMacKit ${TARGET_BUILD_DIR}/$ {PRODUCT_NAME}.bundle/Contents/MacOS/${PRODUCT_NAME}


You can use otool -L to get the appropriate "old" path value for the command. Just run it on the actual binary portion of the bundle (in Product.someExt/Contents/MacOS/${PRODUCT_NAME}) and it'll dump out all the linked libraries.

On Mar 14, 2006, at 1:13 PM, Scott Ellsworth wrote:

Hi, all.

I have a framework that is designed to be embedded in the app bundle, thus the framework path is @executable_path/../Frameworks This works great for the app, but I also have a palette that wants to use this class. If I use a framework path of Library/ Frameworks, IB does find it, but I want this framework to be embedded in my app bundle.

Is there a similar magic variable that I can set in the palette Info.plist that will tell IB where the framework is? I tried adding /Users/work/Documents/coding/cocoa-heads/logicpuzzlehelper/ build/Debug to the FRAMEWORK_SEARCH_PATHS, but that did not help.

The error:

2006-03-14 13:10:19.085 Interface Builder[12505] *** -[NSBundle load]: Error loading code /Users/work/Documents/coding/cocoa-heads/ logicpuzzlehelper/build/Debug/LogicPuzzleHelper.palette/Contents/ MacOS/LogicPuzzleHelper for bundle /Users/work/Documents/coding/ cocoa-heads/logicpuzzlehelper/build/Debug/ LogicPuzzleHelper.palette, error code 4 (link edit error code 4, error number 0 (Library not loaded: @executable_path/../Frameworks/ LogicPuzzleHelperFramework.framework/Versions/A/ LogicPuzzleHelperFramework
Referenced from: /Users/work/Documents/coding/cocoa-heads/ logicpuzzlehelper/build/Debug/LogicPuzzleHelper.palette/Contents/ MacOS/LogicPuzzleHelper
Reason: image not found))
2006-03-14 13:10:19.085 Interface Builder[12505] unable to find class LogicPuzzleHelperPalette


Which tells me that @executable_path is not being resolved as I would like it to be.

Scott
_______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Magic key for IB palettes?
      • From: Scott Ellsworth <email@hidden>
    • Re: Magic key for IB palettes?
      • From: Scott Ellsworth <email@hidden>
References: 
 >Magic key for IB palettes? (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Using a private embedded framework in an IBPalette
  • Next by Date: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
  • Previous by thread: Magic key for IB palettes?
  • Next by thread: Re: Magic key for IB palettes?
  • Index(es):
    • Date
    • Thread