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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:33:02+00:00 2026-05-23T15:33:02+00:00

I have an Xcode 4 project that has my iOS app and a static

  • 0

I have an Xcode 4 project that has my iOS app and a static library (which is a separate project, but included in the app’s project, still with me?).

Okay so anytime I make a change to the static library, in order to see the results when running the app, I have to do a clean and then run. Is there a way to have it automatically clean the static lib before building the app’s target?

  • 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-23T15:33:02+00:00Added an answer on May 23, 2026 at 3:33 pm

    Is the static library’s .a filename colored red in the project structure?

    Step one: make a backup of your project if you don’t have one already 🙂

    Step two: try what worked for me:

    Remove the static library red .a nodes from the project structure.

    Removing these nodes will break the linkage between apps and libs that you’ve established in your project settings (under “Build Phases > Link Binary with Libraries”), but don’t worry — you can set them back up later.

    Now go through all your static library projects one by one and build them individually, targeting “iOS Device” (as opposed to Simulator.) It is important to target iOS Device — this is the magic step.

    Once all your static libraries have been built for iOS Device, then go back through your project settings and re-establish the link between your Apps and your Libs (e.g. by going to “Build Phases > Link Binary with Libraries” in the App’s project settings).

    Because we built the static libs targeting iOS Device, the newly appearing .a nodes should appear in black in the project structure.

    Changes to the static library source code should now be picked up by the Build (or Run) process for your main App, even if you didn’t clean or modify the main App. If you’re like me, and the bulk of your development is inside a static library, and you rarely make changes to the app project, this is a HUGE headache saver.

    If you ever run a Clean while targeting “iOS Device”, the static lib nodes may go red again. I’m not sure if this will break things again.

    It may not actually be necessary to remove nodes / break the linkage to fix the build. It might be enough to just build each library targeting iOS Device. But, I’m not sure about this, so I just wrote up the whole procedure that worked for me.

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

Sidebar

Related Questions

No related questions found

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.