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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:29:27+00:00 2026-05-23T06:29:27+00:00

Many people including me trying to make a kind of Static Library framework for

  • 0

Many people including me trying to make a kind of Static Library framework for iOS to archive some kind of modularity. Framework is best way to do this, but it doesn’t provided by Apple, and workarounds don’t work well.

https://github.com/kstenerud/iOS-Universal-Framework/tree/master/Fake%20Framework/Templates

  1. Fake framework cannot be referenced from linking tab in Build Phases.
  2. Real framework needs modification of system setting. And still not work smoothly on every parts.

Problem is static library need header files, and it’s impossible to reference header files on project at another location on different project without some script. And script breaks IDE’s file management abstraction.

How can I use static library project like a convenient module manner? (just dragging project into another project to complete embedding)

  • 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-05-23T06:29:28+00:00Added an answer on May 23, 2026 at 6:29 am

    Solution.

    1. Goto Project or Target‘s Build Settings.
    2. Find Public Headers Folder Path. (definition name = PUBLIC_HEADERS_FOLDER_PATH)
    3. Set it as YourLibrary.framework/Headers. I have used ${PRODUCT_NAME}.framework/Headers for automatic syncing with project name.
    4. Goto Build Phases and find Copy Headers step.
    5. Move all required headers to Public pane.

    Now all header files will be formed like Framework and copied with product binary. IDE will copy all of them as a unit into some temporary folder like app’s build folder. So referencing app project can use the headers automatically.

    This is a trick. The created directory structure is not real framework. Because it doesn’t contain any binary. However we don’t need real framework to archive just this functionality. IDE works with frameworks without any binary. And I don’t want to hack IDE without documentation about internal structure.


    This works well, however you’ll experience some problem when you Archive. This happens because Xcode4 behaves specially when Archiving. Here’s workaround.

    1. For each embedded library project, SKIP_INSTALL = YES in target build settings.
    2. For final product project, FRAMEWORK_SEARCH_PATHS = "${OBJROOT}/UninstalledProducts". Take care about this setting should be set only for Release build mode.

    Now it’ll be archived well.


    At the case of cross platform library, there can be many projects for many platforms. But sometime Xcode will show some product as red color even it compiled successfully.

    This is a bug of Xcode. IDE display depends SDKROOT of Project build setting. So if you set the SDKROOT differently on Target, it won’t work. You can check the the product will become black color after changing the SDKROOT of the Project build setting. See this Open Radar entry for details.

    http://openradar.appspot.com/9636211

    If you wish to fix this bug, please report this to Apple’s Radar. Duplicated bugs will make attention of Apple. Just copy & paste my report 🙂

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

Sidebar

Related Questions

I have heard from many people that usage of templates make the code slow.
Many websites today (including stackoverflow) and games allow people to perform voting, give feedback,
Many people say to me that set VARCHAR(100) doesnt make sense. It the same
Many people use this method to add animation on switching views. When I try
Many people suggest to develop web applications in open source technologies. And one of
Many people and authors suggested to us to use list than array. List <Integer>
Many people are saying that Apple has restricted it for better performance. If so
Many people have argued about function size. They say that functions in general should
Like many people here, I started my programming experience with the good ol' green
Like many people, I have several SVN repositories that contains several projects. I've decided

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.