tags:

views:

408

answers:

4

Hi Suppose I have have made a an osX app without using Xcode. After compiling with GCC I get an executable which is linked to several other libraries. Some of those libraries might again be dynamically linked to other non-standard system libraries

Is there any tool which exists which makes an OSX App bundle by first making the required directory structures and then recursively copying/checking/fixing links to make sure all the dynamic dependencies are also in the app bundle?

I guess I can try writing something like this but I was wondering if something like this exists already.

+1  A: 

There are some open source tools to help build app bundles with dependent libraries for specific environments, for example, py2app for Python-based applications. If you don't find a more general one, perhaps you can adapt it to your needs.

Ned Deily
+3  A: 

There's really nothing magic about the bundle - just read Apple's documentation on it, and mimic it. At the base, you need an Info.plist, the Contents/MacOS/binary, and an icon.

Wil Shipley
+3  A: 

The simplest solution is: create once an Xcode project without changing anything (i.e. keep the simple one-window app that Xcode creates for you), build it, and copy the bundle it created for you. Then, edit the files (notably the Info.plist) to suit your content, and put your own binary in the Contents/MacOS/ directory.

FX
The question explicitly asks how to do it without xcode. I'm in the same boat and would like a real answer.
hyperlogic
Well, with this, you only have to use XCode once in your life :) or to ask someone to do it for you.
FX
+3  A: 
hyperlogic