Re: IBPlugin error
Re: IBPlugin error
- Subject: Re: IBPlugin error
- From: Jonathan Hess <email@hidden>
- Date: Mon, 9 Jun 2008 21:09:41 -0700
On Jun 9, 2008, at 9:03 PM, Jonathan Hess wrote:
Hey Steve -
You would encounter a similar problem if you directly launched an
application built from a project that had an application and
framework target where the application linked the framework. The
reason for this is that frameworks have install paths. An Install
path is a location a framework dylib advertises as its normal
install location. When another dylib (in this case your plugin)
links a framework, it embeds the framework's install location inside
of itself, and uses that install location to find the framework at
launch time. In this case, your ibplugin bundle is most likely
failing to find the framework created by the framework target in the
IBPlugin project template. This is expected because the framework
isn't in its advertised install location, it's in your Xcode build
directory. Using Console.app, you should be able to find some
relevant information as to why this isn't working. The reason it
works when you "build & go" from Xcode is that Xcode sets the
DYLD_FRAMEWORK_PATH environment variable before launching the copy
of Interface Builder used to debug your plugin. You can read about
the DYLD_FRAMEWORK_PATH environment variable in the dyld man page.
If you'd like to run the release version of your plugin/framework,
you can invoke 'sudo xcode install' from the terminal.
Two mistakes on my part. First, it's "sudo xcodebuild install", and
second you should cd to your project directory before invoking that
command.
Jon Hess
After doing this, there will be a folder in /tmp named
"YourProjectName.dst". You can install this build version of your
application with "sudo ditto /tmp/YourProjectName.dst /". Doing this
will place a copy of both your plugin and framework in their install
locations. After doing this, you can load the plugin using any of
the normal mechanisms.
Good Luck -
Jon Hess
On Jun 9, 2008, at 6:03 AM, Stevie Broadfoot wrote:
Hello,
When I create a new xcode project of type Interface Builder Plugin,
and then build and run, everything works fine in the interface
builder window that pops up. However, if I then go into the release
folder and double-click on "MyIBPlugin.ibplugin", I get this error
message:
The document “MyIBPlugin.ibplugin” could not be opened. The bundle
is damaged or missing necessary resources.
Try reinstalling the bundle.
This also happens if I open Interface Builder and go to the
preferences window, go to the plug-ins pane, click the + button,
then try adding the MyIBPluginFramework.framework file.
Does anyone have any idea what is needed to fix this problem?
- Stevie_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden