Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate
    text
    copied!<p>This is for Xcode 4.5.x iOS armv7 armv7s and the sim and specifcially about Xcode project setup / project build setup:</p> <p>I have a project "A" that is an app in the app store. I have a project "B" that is a library that will be used in A as a dependency, but also distributed as a 3rd-party library to other companies to use in their apps. (other companies' 3rd party apps are represented in this case as "Y").</p> <p>Here are the requirements:</p> <ul> <li>Must be able to run "A" in debug mode, and of course debug the nested "B" project concurrently, in the same build/session.</li> <li>From "A" I can CMD+Click on a method signature from "B" and jump right into that src file, where I'm free to edit and then recompile, as if it were from the same project.</li> <li>A dev "X" at some other company must be able to easily drag our library "B" into his project "Y", where "B" is a static library with only the required header files exposed. "Y" of course calls methods from a subset of "B"'s actual header files. Only the files from this subset should be included in distribution for Dev "X".</li> <li>Dev "X" should not need to modify anything at all in his Xcode project, just drag the folder for "B" (which contains the static lib and subset of header files) into his project and click "Copy resources, create references, etc".</li> <li>I need to be able to generate the static library build of "B" easily, based on the same files I have been editing this whole time as I iterate and debug this project "B" inside of its dependent project "A".</li> <li>"B" has no resources aside from source code -- there are no image assets, xibs, or anything like that.</li> <li>From "B", I click "Archive" and Poof! there's a static lib (must be fat binary, by that I mean it works on the <strong>simulator + armv7 + armv7s</strong>, please!!) with the essential header files ready to be distributed.</li> <li>All of this must be <strong>app store approval</strong>-friendly</li> <li>Also this must be reliable. It's no good if I have to keep coming back to make a lot of config changes every time I add one file.</li> </ul> <p><strong>UPDATE:</strong><br> <strong>*</strong> <em>MOST IMPORTANT</em><strong>: This needs to be a repo I can check out that is a full end-to-end template of what am looking for, and I need to be able to open up Xcode 4.5.2+ and click play and see this thing build, pain-free.</strong></p> <p><strong>500 points</strong> to anyone who can provide me a template project that demonstrates everything I have described above, "A", "B", and "Y" (with "B" static lib used as a dep). All i need is a set of skeleton projects ("A", "B" (nested inside "A"), and "Y") that shows how this can be done. Please don't hold back the answer until the bounty is posted. If it meets my requirements, I'll make sure you get my bounty points.</p> <p>I'm somewhat worried that with the limitations of Xcode that this is not even possible in a way that is not a complete hassle. Please prove me wrong.</p> <p>UPDATE: I decided I don't care about armv6 anymore. Goodbye, armv6. <strike>Extra credit if you can get armv6 rolled into the dist output along with armv7, armv7s, i386/simulator.</strike></p> <p>P.S. I promise that I will be reasonable awarding the points. I'm not looking to withhold them on a technicality. If you make my life dramatically less painful in this one area, I will gladly award you the points.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload