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

  • Home
  • SEARCH
  • 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 8610643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:10:58+00:00 2026-06-12T04:10:58+00:00

I need to build sub-projects as static libraries, not too sure how I should

  • 0

I need to build sub-projects as static libraries, not too sure how I should do it, should I:

  1. Compile all sub-projects one by one (or compile the main project once?)
  2. Find .a files for sub-projects in products folder, copy them to main project
  3. copy all .h files for sub-projects into a folder in main projects
  4. remove all sub-projects

are the above steps correct?

Also, do I need to compile them in release(or debug) mode, and for simulator and device respectively?

Thanks!

  • 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-12T04:10:59+00:00Added an answer on June 12, 2026 at 4:10 am

    I use static library in my project. The steps you mentioned are correct except remove all sub projects? Why do you need to have sub projects at all. They all ideally should be independent libraries compiled independently and you just add .a file and main header files in the main project. If you do this you don’t need to update your main project when your static library changes. You just need to update .a file or .h incase they changed….and yes you will need to compile static libraries in release mode when you want to submit your App to appstore. Simulator and device really doesn’t matter as it’s not going to run. It’s all matter is iOS target and base SDK that you complied against.

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

Sidebar

Related Questions

I need to build project with subprojects and main project is the Maven project,
I need to build a keystore with all the needed SSL certificates to make
In an Arduino project, I have build configurations to compile for, and download to,
I have an application with many sub projects, currently I use maven2 to compile
I am trying to compile one .Net c# project into multiple dlls. But here
There is a multi-module Maven-3 project, where one of sub-modules is used as <dependency>
Do I need to register dependencies for ALL my NancyModules when testing just one
This I'm trying for transfer my current Apache/Modperl site to Starman, and need build
I need to build app with user messages (dialogs). I've solved this problem by
I need to build a feature like most of the banks use. Where.. if

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.