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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:31:51+00:00 2026-06-01T15:31:51+00:00

I have some shared code I want to reuse in my Xcode projects. The

  • 0

I have some shared code I want to reuse in my Xcode projects. The easiest way is using a shared framework. I must make headers public in order to reuse the framework in my projects.

Now: since the framework must be copied inside final products, is there an automatic way to prevent public headers from being copied too? Of course I can do this manually, but an automated trick would be amazing 🙂

Thank you

  • 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-01T15:31:52+00:00Added an answer on June 1, 2026 at 3:31 pm

    IIRC, you can do all that with frameworks. Frameworks can be installed system-wide, or inside the application package. If you haven’t read it yet, it’s in the docs : Embedding a Private Framework in Your Application Bundle

    Basically, you’re going to make two variants of your framework, one for developing client applications, one for embedding inside those applications. In Xcode you can :

    • either setup two framework targets, and change the Header files’ roles as wanted (public or private)
    • or use the PUBLIC_HEADERS_FOLDER_PATH build setting with different values in two build configurations. (Say, “Development” and “Deployment”). Your header files will end up in different locations this way.

    I haven’t done this for a long time, but I don’t have particularly good memories of embedded frameworks. What type of code are you reusing exactly? Is this common, all-purpose code? Or is it a whole, coherent project?

    If you’re just trying to reuse generic code, you might be better off using a simple, old-school .a static library with a headers folder, or even better, a static framework. (Which is just a static library inside a framework bundle)

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

Sidebar

Related Questions

I have some code shared among multiple projects in a static library. Even with
I have some projects on bzr code repositories shared with colleagues. Problem is, I
Can anyone help? I have some code that is shared between 2 projects. The
I'm trying to setup a structure where I can have some shared code base
I have some shared preferences (latitude, longitude) that I want to access from a
I want to write some library code to be shared across products and across
I have some code that I want to build. The code uses boost::ptr_map class
I have a shared site in sharepoint and have some RSS feed webpart in
I have a big project compiled into libProject.so-file (shared library), I made some modules
Could anyone share some links on how to get started using QPID? I have

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.