 |
|
 |
|
Next: G5 iMac always dim on startup
|
| Author |
Message |
External

Since: Mar 24, 2005 Posts: 34
|
(Msg. 1) Posted: Mon Jun 13, 2005 7:55 am
Post subject: Header files in Application bundles Archived from groups: comp>sys>mac>programmer>help (more info?)
|
|
|
Hi, every time I build an XCode project, all my header files end
up in the app bundle. WTF?? Is there any reason for that? I
deleted them one time, and the app ran just fine. Can I just
uncheck the boxes next to my header files, or does it serve any
purpose to ship my source code to the user? ;)
Most Apple apps seem to not include headers...
--
Don't let school interfere with your education. -- Mark Twain >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Sep 18, 2003 Posts: 1258
|
(Msg. 2) Posted: Mon Jun 13, 2005 11:55 am
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ulrich Hobelmann <u.hobelmann.RemoveThis@web.de> wrote:
> Hi, every time I build an XCode project, all my header files end
> up in the app bundle. WTF?? Is there any reason for that?
Have you tried updating to Xcode 2.1? m.
--
matt neuburg, phd = matt.RemoveThis@tidbits.com, <a style='text-decoration: underline;' href="http://www.tidbits.com/matt/" target="_blank">http://www.tidbits.com/matt/</a>
Tiger - <a style='text-decoration: underline;' href="http://www.takecontrolbooks.com/tiger-customizing.html" target="_blank">http://www.takecontrolbooks.com/tiger-customizing.html</a>
AppleScript - <a style='text-decoration: underline;' href="http://www.amazon.com/exec/obidos/ASIN/0596005571" target="_blank">http://www.amazon.com/exec/obidos/ASIN/0596005571</a>
Read TidBITS! It's free and smart. <a style='text-decoration: underline;' href="http://www.tidbits.com" target="_blank">http://www.tidbits.com</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Aug 16, 2003 Posts: 141
|
(Msg. 3) Posted: Mon Jun 13, 2005 1:08 pm
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Mar 24, 2005 Posts: 34
|
(Msg. 4) Posted: Mon Jun 13, 2005 3:55 pm
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
matt neuburg wrote:
> Ulrich Hobelmann <u.hobelmann RemoveThis @web.de> wrote:
>
>
>>Hi, every time I build an XCode project, all my header files end
>>up in the app bundle. WTF?? Is there any reason for that?
>
>
> Have you tried updating to Xcode 2.1? m.
Apple's page says it's Tiger only. Anyway, good ole 1.5 served me
well so far.
--
Don't let school interfere with your education. -- Mark Twain<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: May 28, 2005 Posts: 23
|
(Msg. 5) Posted: Mon Jun 13, 2005 10:55 pm
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ulrich Hobelmann wrote:
> Hi, every time I build an XCode project, all my header files end
> up in the app bundle. WTF?? Is there any reason for that?
yes: if you're building a project that's going to be a dylib, then you want
some of your header files to go into your bundle. if you're building an
app, you don't want that, so just uncheck all the headers.
i'm not crazy about this, because every time i add a new module, i forget to
uncheck the header, but that's the way it is.
matt neuburg wrote:
> Have you tried updating to Xcode 2.1? m.
i really doubt that has anything to do with it.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Jun 01, 2004 Posts: 525
|
(Msg. 6) Posted: Tue Jun 14, 2005 3:18 am
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
J?hnny F?v?r?t? (it means "Wrote His Own Newsreader") <brunsona DeleteThis @newsguy.takethisout.com> wrote:
> Ulrich Hobelmann wrote:
>> Hi, every time I build an XCode project, all my header files end
>> up in the app bundle. WTF?? Is there any reason for that?
>
> yes: if you're building a project that's going to be a dylib, then you want
> some of your header files to go into your bundle. if you're building an
> app, you don't want that, so just uncheck all the headers.
>
> i'm not crazy about this, because every time i add a new module, i forget to
> uncheck the header, but that's the way it is.
>
> matt neuburg wrote:
>> Have you tried updating to Xcode 2.1? m.
>
> i really doubt that has anything to do with it.
Since the behavior under discussion is a bug that's fixed in Xcode 2.1,
it's a good question to ask.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Jun 10, 2005 Posts: 14
|
(Msg. 7) Posted: Tue Jun 14, 2005 3:32 am
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"=?UTF-8?Q?J=C3=B8hnny_F=C3=A4v=C3=B2r=C3=ADt=C3=AA?=" (it means "Wrote His Own Newsreader") <brunsona RemoveThis @newsguy.takethisout.com> writes:
> Ulrich Hobelmann wrote:
>> Hi, every time I build an XCode project, all my header files end
>> up in the app bundle. WTF?? Is there any reason for that?
>
> yes: if you're building a project that's going to be a dylib, then you want
> some of your header files to go into your bundle.
Minor nit - if you're building a dylib, it's just the one file, not a bundle.
A *framework* is a bundle that can include a dylib, resources, and headers.
sherm--<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Mar 12, 2005 Posts: 8
|
(Msg. 8) Posted: Tue Jun 14, 2005 3:55 am
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Jøhnny Fävòrítê <brunsona.TakeThisOut@newsguy.takethisout.com> wrote:
> Ulrich Hobelmann wrote:
> > Hi, every time I build an XCode project, all my header files end
> > up in the app bundle. WTF?? Is there any reason for that?
>
> yes: if you're building a project that's going to be a dylib, then you want
> some of your header files to go into your bundle. if you're building an
> app, you don't want that, so just uncheck all the headers.
>
> i'm not crazy about this, because every time i add a new module, i forget to
> uncheck the header, but that's the way it is.
I'm still with Xcode 1.5, but if you add the header phase in your
target, I think new header files will not longer end up in the app
bundle.
--
Frédéric Testuz<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: May 28, 2005 Posts: 23
|
(Msg. 9) Posted: Tue Jun 14, 2005 5:55 am
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Frédéric Testuz wrote:
> I'm still with Xcode 1.5, but if you add the header phase in your
> target, I think new header files will not longer end up in the app
> bundle.
i'm also still on 1.5, and i doubt i'll upgrade for a good long while. it's
always a gigantic pain in the ass, and i don't see anything all that
enticing in 10.4 that i want.
i just had a look, but it's never easy to find anything in xcode. how do
you "add a header phase in your target?"<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Mar 12, 2005 Posts: 8
|
(Msg. 10) Posted: Tue Jun 14, 2005 3:59 pm
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Jøhnny Fävòrítê <brunsona.DeleteThis@newsguy.takethisout.com> wrote:
> Frédéric Testuz wrote:
> > I'm still with Xcode 1.5, but if you add the header phase in your
> > target, I think new header files will not longer end up in the app
> > bundle.
>
> i'm also still on 1.5, and i doubt i'll upgrade for a good long while. it's
> always a gigantic pain in the ass, and i don't see anything all that
> enticing in 10.4 that i want.
>
> i just had a look, but it's never easy to find anything in xcode. how do
> you "add a header phase in your target?"
Select your target (in the left), menu Project->New Build Phase->New
Headers Build Phase
--
Frédéric Testuz<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
External

Since: Apr 30, 2004 Posts: 61
|
(Msg. 11) Posted: Wed Jun 15, 2005 4:23 pm
Post subject: Re: Header files in Application bundles [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I suspect what's going on is that you're adding the header files to
your target, but your target has no Headers build phase, and for some
reason Xcode is deciding that you want it to treat them as bundle
resources to copy into the built product instead.
Try adding a Headers build phase to your target and moving all of the
headers that are currently in a Bundle Resources build phase to that.
Then as you add new headers to your target, they should be routed to
the Headers build phase with a default visibility of "project".
To see header visibility, what I generally do is (using Xcode in its
default layout) select my target in the left pane and then in the right
(detail) pane, there will be a column for header visibility.
-- Chris >> Stay informed about: Header files in Application bundles |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|