Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 536717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:51:04+00:00 2026-05-13T09:51:04+00:00

What does __OBJC__ mean in Objective-C? #import <Availability.h> #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h>

  • 0

What does __OBJC__ mean in Objective-C?

#import <Availability.h>

#ifdef __OBJC__
    #import <Foundation/Foundation.h>
    #import <UIKit/UIKit.h>
#endif
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:51:05+00:00Added an answer on May 13, 2026 at 9:51 am

    This looks like your precompiled header file.

    The precompiled header is shared between all C-dialect files in your project. It’s as if all your .c, .cpp, .m and .mm files have an invisible #include directive as the first line. But the Cocoa header files are pure Objective C – trying to include them in a C/C++ source will yield nothing but syntax errors aplenty. Thus the #ifdef.

    If your project only contains Objective C files (.m/.mm), which is the typical case, the #ifdef is not really necessary. But Xcode, which generated this header in the first place, protects you all the same.

    Even if it’s not a PCH file, this #ifdef only makes sense if the file is to be included from both Objective C and plain C/C++. But it does not hurt regardless.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the following obj-c function, what does the %qx format specifier mean (I would
Does OBJC_ASSOCIATION_RETAIN_NONATOMIC of the Associative Object Behaviors in the Objective-C Runtime Reference , call
I don't really understand how ObjC can efficiently rely on messages. Does this mean
In Obj-C, what does it mean in simple terms; CoreData is not thread safe
I am an Objective-C newbie, who still does not have a Mac, but still
I Got such error... I don't know what does it mean... Undefined symbols: _OBJC_CLASS_$_CoffeeViewController,
What does this error mean exactly and how do I fix it? 2011-08-10 12:06:54.116
This is the Python code: #!/usr/bin/python import os import sys from Foundation import *
After reading this thread What does the explicit keyword mean in C++? I made
What does mean? I get this error when trying to iterate through a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.