• 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
loading a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: loading a bundle
      • From: j o a r <email@hidden>
  • Prev by Date: [TIP] Active build configuration macros
  • Next by Date: Re: Are you sure you want to delete the targets?
  • Previous by thread: -single_module error with -bundle
  • Next by thread: Re: loading a bundle
  • Index(es):
    • Date
    • Thread