• 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 loading IB plugin [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem loading IB plugin [solved]


  • Subject: Re: Problem loading IB plugin [solved]
  • From: Rick Hoge <email@hidden>
  • Date: Wed, 21 Nov 2007 09:21:11 -0500


[...]

If I launch IB in the usual way however, and then open IB Preferences and try to add the plugin bundle by clicking the + sign, an alert panel opens with the following message:

The bundle “JUNK” could not be loaded because it is damaged or missing necessary resources.
Try reinstalling the bundle.



[...]

Nothing like actually looking at the Console output - IB was logging an error message indicating that the framework library, which it was looking for in /Library/Frameworks/ was not being loaded. This is an immediate giveaway.

The framework target specifies the installation location as /Library/ Frameworks/ - I was trying to load the plugin from the build folder in my project, without putting a copy in the standard location. I should have thought of this before - this has come up in previous projects. It's a common reason for projects including loadable bundles to stop working outside of Xcode if the bundles are kept inside the application bundle. I have had to change the installation location from /Library/Frameworks to @executable_path/../Frameworks on a regular basis.

Once I put the framework in /Library/Frameworks/ , all worked as advertised. A project linking against that framework gets the plugin loaded automatically when you open a nib from that project.

The only other minor annoyance is that the views I want to support in this way can't operate exclusively under Garbage Collection but that's another matter... the views in question don't have particularly complex memory management needs and you can still run in GC mode when actually used in an app, right? It's just IB that is not GC.

Rick _______________________________________________
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: Problem loading IB plugin [solved]
      • From: Jonathan Hess <email@hidden>
    • Re: Problem loading IB plugin [solved]
      • From: "Sean McBride" <email@hidden>
References: 
 >Problem loading IB plugin (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: saving front window using osascript...
  • Next by Date: Re: where are my classes?
  • Previous by thread: Re: Problem loading IB plugin
  • Next by thread: Re: Problem loading IB plugin [solved]
  • Index(es):
    • Date
    • Thread