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 7954155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:20:26+00:00 2026-06-04T03:20:26+00:00

In Xcode’s Copy Headers phase, what is the difference between the headers under the

  • 0

In Xcode’s “Copy Headers” phase, what is the difference between the headers under the “Project” section and the “Private” section? When would you want to use each?

Also, I can understand why you would want to copy public headers (for a static library for instance) – but why would you want to copy private headers?

Edit: @mipadi below explains the roles of the Public and Private parts. However I’m still missing the difference between including a header in the “Project” part vs. not having the header in any part of the “Copy Headers” phase.

  • 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-04T03:20:28+00:00Added an answer on June 4, 2026 at 3:20 am

    If a public header includes a private header, you have to copy the private headers, but you want to make sure that consumers of the library or framework know that those private headers are not part of the public API.

    “Project” headers are private headers that are not included by a public header (they’re usually part of the internal implementation and thus only included in an implementation — .c or .m — file).

    When building a framework, public headers are copied into the Headers directory of the framework, whereas private headers are copied into the PrivateHeaders directory.

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

Sidebar

Related Questions

Xcode 4.2 Now I have two project name with game.xcodeproj and core.xcodeproj I want
Xcode 3 had the easy to use Project-> Rename in case I wanted to
XCode 4.31 crash when i try to open my project. I could open any
XCode works in mysterious ways (at least to me). I simply want to create
Xcode looked at this line and did not complain. Project built, code crashed at
Xcode Project: How to create conditional build via Xcode Project I had tried to
Xcode 4 project contains two targets: " normal " application target and " test
Xcode 3.2 provides an awesome new feature under the Build menu, Build and Archive
XCode 3.2.5 Organizer hanged when I try to Use for Development a Touch (2nd
Xcode keeps crashing on me when I open my project file. I've been able

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.