Re: Problem loading IB plugin
Re: Problem loading IB plugin
- Subject: Re: Problem loading IB plugin
- From: RICKY SHARP <email@hidden>
- Date: Wed, 21 Nov 2007 04:15:57 -0800
On Tuesday, November 20, 2007, at 10:59PM, "Rick Hoge" <email@hidden> wrote:
>
>I've been experimenting with Interface Builder plugins, and must be
>doing something stupid as I keep getting the same error message when
>attempting to load a plugin into IB.
>
>As a test, I created a new project from the Xcode 3 template
>"Interface Builder 3.x Plugin". I am assuming that, for proof of
>concept, this should build and load with no modifications (it just
>won't do anything useful).
>
>When I build the template project, I get the compiler warning
>"warning: no debug map in executable" for both ppc and i286 arch's
>(this is not the source of the problem, but I'd expect unchanged
>template code to be warning free - what causes this?)
No idea; I don't get that warning here. I'm using Xcode 3.0 on an Intel Mac.
>If I build and run the "All" target, IB is launched with the newly
>created plugin and the button in the template is visible in the
>objects palette. So far, so good.
>
>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.
>
>I get this message whether I load the .ibplugin bundle (I believe this
>is what you're supposed to do) or the framework. Needless to say if I
>add the framework (which contains the bundle in Resources) the plugin
>is *not* automatically loaded when launching a nib from that project.
>
>Any idea on what I might be doing wrong?
The IBPlugin itself needs to live inside the built framework (in the Resources folder). When choosing the plugin via IB's preferences, you'll be selecting the top-level folder of the framework. Note that it is possible to reverse this (i.e. IBPlugin lives on the "outside" with dependent framework contained within; Rainer B. has done this).
Also, have you tried out my sample code? I believe I posted to both cocoa-dev and this list. Link is:
<http://www.instantinteractive.com/private/samplecode/MyIBPlugin.zip>
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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