Re: Understanding Xcode build errors from using Objective-C runtime function in OS X's Foundation app template.
Re: Understanding Xcode build errors from using Objective-C runtime function in OS X's Foundation app template.
- Subject: Re: Understanding Xcode build errors from using Objective-C runtime function in OS X's Foundation app template.
- From: Jens Alfke <email@hidden>
- Date: Thu, 30 May 2013 11:44:42 -0700
On May 30, 2013, at 10:25 AM, Public <email@hidden> wrote:
> Turns out the 19 build errors stemmed from my forgetting that Xcode expecting a .m to use Foundation even though I was using a C function int objc_getClassList(Class *buffer, int bufferLen)
Well, you were trying to include/parse an Objective-C header (Foundation.h) in a pure C source file, which means the compiler will barf on all the Objective-C syntax.
Since Obj-C is a superset of C, it’s best to just use a .m suffix in all your source files if you use any Obj-C in your app.
—Jens
_______________________________________________
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