Hello all,
I read over the Bundle Programming Guide but am
confused on some aspects, especially when I try to make a bundle in
XCode.
First, I decided I needed a bundle so I could
package all my resources and private libs/frameworks into one. So I
decided to make a Legacy Bundle and then update to a native project. I was
able to get everything built with little trouble. At this point I didn't
yet copy the frameworks or libs...I wanted to see what would happen when I just
ran the bundle. And this is where my first problem came up...
I realize that it is not possible to run a bundle
through Xcode without making a custom executable. So, I did that and had
it execute the bundle (I assume this is the correct way to go...?).
However, when I ran the executable, I simply got the "session started" menu and
that's it. The bundle didn't seem to execute, no errors were given.
What did I do wrong?
At this point I decided to make an Application
instead. So, I created a Legacy Application and made it native (I do this
because I don't want to create a Cocoa or Carbon or whatever app...I don't want
the extra junk in there; is there a better way to do this?)
When I looked at my Application product, I was
suprised to see that it had the same structure as a bundle...so an XCode
application is a bundle? I knew that applications could be bundled,
but I assuemd the way to do that would be to create a bundle and not an
application.
Anyways, at this point I was ready to copy my
libs/frameworks into the product. All my libs and frameworks were in
seperate projects, so I just went ahead and wrote a script to put all my stuff
in the product (MyApp.app/Contents/Frameworks). But when I run the app it
can't find any of that stuff. It's looking in its executable path and
/Library/Frameworks. So, assuming that my app actually is a bundle, how do
I get the bundle to actually look in its frameworks directory for the
libs/frameworks?
Sorry for the novice questions, but I hope you can
understand my confusion.
Thanks,
Ryan
|