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

  • SEARCH
  • Home
  • 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 8485705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:43:23+00:00 2026-06-10T20:43:23+00:00

XCode: Copy Headers: Public vs. Private vs. Project? That seems to be a good

  • 0

XCode: Copy Headers: Public vs. Private vs. Project?

That seems to be a good explanation but i still couldn’t understand much of it.

public – readable source code? do they mean readable source code of the header file?

private – since i am still working on that part of the implementation, i’ll mark that header as private and no one will be able to use it, until i change it back to public and build the library again. ??

project – I couldn’t understand anything

  • 1 1 Answer
  • 0 Views
  • 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-06-10T20:43:25+00:00Added an answer on June 10, 2026 at 8:43 pm

    Long story short: if you want to make your code available as a library, put those function and type declarations in the header.

    If you have complicated code that shares types between c files and requires-forward declaration of types and functions, put them in headers.

    Otherwise, no need to use headers. Although it’s nice to separate them out for readibility and documentation purposes.

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

Sidebar

Related Questions

I need to copy the Localizable.Strings files/folders from one Xcode project to another. I'm
In Xcode's Copy Headers phase, what is the difference between the headers under the
I've recently updated to Xcode 4.3.2 and found that I can now declare private
I have a static library Xcode 4 project that includes a home-brewed rendering engine,
I have set a header file's role in Xcode to private so that it
Is it possible to Copy targets from one Xcode project to another, and if
I have a project in Xcode that I need to use the AWS SDK
In Xcode there are the Copy Files Build Phases that let you copy files
When I set a Launch Image , Xcode creates a copy as Default.png and
Could someone explain the difference between the Copy Bundle Resources phase of Xcode and

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.