• 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: Xcode not compiling a .c file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode not compiling a .c file?


  • Subject: Re: Xcode not compiling a .c file?
  • From: Markus Hitter <email@hidden>
  • Date: Wed, 9 Nov 2005 16:24:50 +0100


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: This email sent to email@hidden
References: 
 >Xcode not compiling a .c file? (From: Ben Kazez <email@hidden>)

  • Prev by Date: Re: Xcode not compiling a .c file?
  • Next by Date: Re: Xcode not compiling a .c file?
  • Previous by thread: Re: Xcode not compiling a .c file?
  • Next by thread: Target editor in Xcode
  • Index(es):
    • Date
    • Thread