Re: A project without a library or executable issues.
Re: A project without a library or executable issues.
- Subject: Re: A project without a library or executable issues.
- From: Chris Espinosa <email@hidden>
- Date: Thu, 15 Dec 2005 07:58:53 -0800
On Dec 13, 2005, at 7:42 PM, D. Walsh wrote:
I'm trying to generate a project that does not generate libraries or
executables but data files.
I've gone through the docs and every target they speak of is either an
executable or a library but this project is for data files only.
What's the trick??
I can compile the source files from the CL however there are always
244 leading bytes of data (see dump below).
The 244 leading bytes are the Mach-O header (mach_header_t), see mach.h
It's required to make executable code load on Mac OS X. We don't have
provisions to create corrupted executables that don't load (at least
not on purpose).
If you just want to build a data file, you can try any of the following:
- intercept the .o file from the Intermediates directory and copy that
into your bundle
- use a shell script build phase to write the data file
- use otool to extract the data from the executable
Chris
_______________________________________________
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