• 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
Re: A project without a library or executable issues.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A project without a library or executable issues. (From: "D. Walsh" <email@hidden>)

  • Prev by Date: Re: avoid space in path names
  • Next by Date: Who is using me for distributed builds?
  • Previous by thread: Re: A project without a library or executable issues.
  • Next by thread: Solved: "C" Functions Won't Link Between .mm Files
  • Index(es):
    • Date
    • Thread