• 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
Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?


  • Subject: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
  • From: Nick <email@hidden>
  • Date: Wed, 12 Sep 2012 07:17:59 +0300

Hello
I have  build an xcode project from a set of .c and .cpp files using qmake.
In project settings I made sure there's "Compile sources as: According
to file type" is set. I am using LLVM GCC compiler if this matters..
But everytime I build my project, for all the .c files I am getting a warning:
Warning: no rule to process file
'$(PROJECT_DIR)/../Source/CPart/cfile.c' of type sourcecode.c for
architecture x86_64

And, consequently, linker complains about unresolved dependencies from
these .c files (functions in .cpp files call functions from these .c
files).

I am wondering why this is happening?

For every .c file in XCode I have set "C source" as file type on the
"Identity and Type" XCode panel.

Now, interestingly, if I set "Default - C Source" as file type for
each .c file, this "no rule to process file... of type sourcecode.c"
is gone, instead I get hundreds of errors in boost headers (my project
uses boost, but, of course, boost headers are included only in .cpp
files - each of them, by default, is set as "Default - C++ source" on
"Identity and type").. What is wrong, why can't the project be build?
Is it a bug in XCode 4.4, or am I doing anything wrong?

Thanks for any help!

 _______________________________________________
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

  • Follow-Ups:
    • Re: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
      • From: Nick <email@hidden>
  • Prev by Date: Re: How do you place debug points in a library that is a separate project?
  • Next by Date: Re: Source File Paths Outside of Project
  • Previous by thread: Re: How do you place debug points in a library that is a separate project?
  • Next by thread: Re: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
  • Index(es):
    • Date
    • Thread