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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:21:29+00:00 2026-06-15T13:21:29+00:00

In building an objective-c static library, I noticed that the .a file (fat file

  • 0

In building an objective-c static library, I noticed that the .a file (fat file from simulator and iPhone) is quite large. In particular, it was originally 5.7mb. I found this post and set my build settings Generate Debug Symbols to No, decreasing the lib size to 1.7mb.

This was a big improvement, but is there anything else that can be done? The implementation and header files alone take up ~100kb.

  • 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-15T13:21:31+00:00Added an answer on June 15, 2026 at 1:21 pm

    In case it’s part of your concern, a static library is just the relevant .o files archived together plus some bookkeeping. So a 1.7mb static library — even if the code within it is the entire 1.7mb — won’t usually add 1.7mb to your product. The usual rules about dead code stripping will apply.

    Beyond that you can reduce the built size of your code. The following probably isn’t a comprehensive list.

    In your target’s build settings look for ‘Optimization Level’. By switching that to ‘Fastest, Smallest -Os’ you’ll permit the compiler to sacrifice some speed for size.

    Make sure you’re building for thumb, the more compact ARM code. Assuming you’re using LLVM that means making sure you don’t have -mno-thumb anywhere in your project settings.

    Also consider which architectures you want to build for. Apple doesn’t allow submission of an app that supports both ARMv6 and the iPhone 5 screen and have dropped ARMv6 support entirely from the latest Xcode. So there’s probably no point including that at this point.

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

Sidebar

Related Questions

I'm building an iPhone app that has to download an Excel (.xls) file from
I'm building a static library, MyLibrary , for iOS in Objective-C that bundles together
Building an iPhone OS application that will allow users to anonymously post information to
I'm building an Objective-C wrapper for a nasty legacy C-library. Assume I have two
I am in the process of building my first iPhone app (xCode,objective-c) which has
I'm building a program, and I'm quite confident using Objective-C, but I don't know
I'm building an Objective-C app that has both a server and a client. The
Let's say I'm building a new class for the iPhone in Objective-C. In one
Im building an iphone app through xcode and objective c. building for ios5.0 min
Background: I'm building a view-based NSTableView-esque control in Cocoa/Objective-C that offers the ease of

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.