Re: Problem loading IB plugin [solved]
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