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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:31:05+00:00 2026-05-23T14:31:05+00:00

In my Cocoa development, every so often I include a header into a source

  • 0

In my Cocoa development, every so often I include a header into a source file so I can use a particular class in it. But then later I delete that code from the source file, and forget (or don’t really want to worry about) deleting the corresponding #import.

With time, a lot of redundant #import lines pile up in my source files, throughout the codebase.

Now, I know that these lines cause no harm, but is there any easy way to get rid of them automatically? At least it would make the top of every file cleaner 😉

  • 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-23T14:31:06+00:00Added an answer on May 23, 2026 at 2:31 pm

    nothing comprehensive off the shelf comes to mind.

    1) JetBrains’ AppCode may help. It’s quite young at this time (e.g. not even ‘beta’, but it is publicly distributed), and doesn’t fully understand structures of includes and nontrivial xcode projects and build settings, but it is likely smart enough to handle simpler cases.

    2) you could create some scripts to accomplish what you’re after. it wouldn’t be terrible if you already have a project which builds out everything using common build settings. doing this manually is a pain, and is usually not a good use of time in larger projects if you are not using a high level of automation.

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

Sidebar

Related Questions

In cocoa-touch development... Use AppDelegate for delegate classes Create separate delegate class and locate
In Cocoa, how can I write a string to a text file without replacing
I have to development an QR Generator in Cocoa. but currently I was used
So I've just started digging into Objective-C, Cocoa, and iPhone development. I've ran into
I am new to cocoa development Can any one please tell me how I
I'm just getting into desktop Cocoa development (I have experience with iOS development). If
I'm new to Cocoa development - I want to display an aribitrary number of
I'm getting back in to Cocoa development on the Mac after a long stint
I'm implementing a new iPhone app and am relatively new to Cocoa development overall.
My Cocoa app needs some small dynamically generated windows. How can I programmatically create

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.