Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode not compiling a .c file?




Am 09.11.2005 um 15:06 schrieb Ben Kazez:

I put the .h file in the "Copy Headers" build phase and included it from the main framework include file, and that's working. Then I put the .c file in the "Compile Sources" build phase.

Unless you do something unusual, you shouldn't fiddle with build phases. Xcode handles this for you.



First, make sure, the file pair is part of your project. If they are listed in the "Groups & Files", they are.


To get them involved in the build process, you have to add both files to the current target. Easiest way to do so, IMHO, is to add the "Target Membership" checkboxes column to the Groups & Files pane. Ctrl-click in the pane's title to select the column.

Then make the target you want to build with current, check the box left to the file in the Groups & Files pane and there you go.

The next time you add a file pair, Xcode offers you to do all these steps at once.


does anyone see my (probably outrageously simple) mistake?

You didn't do one of the tutorials? Xcode has a preferred way to build things and it works a lot easier if you follow this path.



Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Xcode not compiling a .c file? (From: Ben Kazez <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.