loading a bundle
loading a bundle
- Subject: loading a bundle
- From: "Wesley Smith" <email@hidden>
- Date: Sun, 21 Jan 2007 14:35:23 -0800
The code I'm working with uses NSCreateObjectFileImageFromFile to load
dynamic libraries into the runtime system. I can easily build the
dynamic libs from the command line, but I'd like to be able to build
them from Xcode.
I started with the default Bundle target and made a few modifications.
I added Pkginfo file with the string BNDL???? in it. I have a custom
build step that puts it in the Contents folder of the bundle. When
the command NSCreateObjectFileImageFromFile is called and it tries to
load the bundle, it fails. I have a proper Info.plist in the bundle
pointing to the executable, so I'm at a loss as to why this fails.
I tried getting rid of the whole directory structure of the bundle and
just loading the executable directly. This actually worked. Am I
missing something here? I though that with a properly formatted
bundle that NSCreateObjectFileImageFromFile would be able to do what I
ended up donig by hand...that is reading the executable directly
instead of passing in the path to the bundle itself. Any ideas?
thanks,
wes
_______________________________________________
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