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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:51:46+00:00 2026-05-11T01:51:46+00:00

I am looking to distribute an open source iPhone app and I have a

  • 0

I am looking to distribute an open source iPhone app and I have a few questions about making the source distribution:

  1. How can I automate creating the source archive (or diskimage) with XCode? I want something along the lines of a build target which archives the source (cleaning targets first if necessary, but it would be nice if it didn’t have to). I also have an external netbeans project with a ruby script that is used to build an SQL database that the program needs (but can make a separate archive of that if necessary).

  2. What’s the best way to identify the files that constitute the ‘source’? Is it simply anything that’s left after cleaning all targets? Any caveats with that approach (I don’t quite trust IDEs to clean up all the cruft they seem to make – also is this liable to include any codesigning stuff that it shouldn’t)?

  • 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. 2026-05-11T01:51:47+00:00Added an answer on May 11, 2026 at 1:51 am

    You can add a Run Script Build Phase to any target to do postprocessing of the build. The right approach is usually to create an Aggregate Target that first builds your build product target, then runs the script on the output.

    It’s hard to identify all the ‘source’ files. It’s often everything in $(SRCROOT) but if your project is laid out in the Root -> ( src ) ( projfiles ) manner, the $(SRCROOT) will only contain your project file and not any sources. You may have to encode the knowledge of at least the top-level project layout into the script, and maintain it if it changes.

    Even though it’s the default, you probably don’t want to place your build folder in the project folder if you’re going to archive the sources, because you’ll often grab the intermediates, project index, and other ephemera. In your Project’s Get Info inspector, General pane, set the Build Products and Intermediates directory to some common location outside the project directory. That will simplify the job of archiving your sources.

    And Xcode has a built-in archiving mechanism, called Snapshots; you might want to use that, though it’s not straightforward to automate. But Snapshots does know all about all your sources.

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

Sidebar

Related Questions

I am looking to distribute a symfony web app, but don't want to reveal
I'm looking for a framework (open source) for distributed computing for .Net / Mono
I am looking for a c# library that is open source but licensed to
I'm looking for recommendations for a simple open source implementation of a Distributed Hash
I wrote a small PHP application that I'd like to distribute. I'm looking for
I'm looking at making some mobile apps in my spare time and I want
I am looking for a library which I can plug into a distributed application
Does anyone know of a reference that explains the different open-source licenses in easily
I have been looking for cloud computing / storage solutions for a long time
i need a pointer i the right direction. I have been looking around and

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.