cocoa - Xcode workspaces with sub-projects and project dependencies triggering builds -


i wish there better documentation xcode 5 couldn't find decent describing best practices working workspaces, so..

in workspace several projects (couple frameworks, 1 app) possible have xcode build dependent projects only when required (i.e. changes found) w/o having include projects in dependent projects?

i'd rather have frameworks in project depending on instead of having 5-6 sub projects in mess in navigation view -
files inside sub-projects show in search results time, sub-projects in navview expand whatever reason within projects..

however, w/o including projects particular project depends on i couldn't find way have xcode 5 re-build frameworks automatically if 1 of dependencies has changed.

this solution intended problem, maybe fills needs.

after adding subproject workspace:

  1. select target should use newly added subproject
  2. in "link binaries libraries" under build phases hit + button
  3. if library does´t show hit "add other..."
  4. navigate folder project file (*.xcodeproj) lies
  5. mark , hit "open"
  6. now should see project file show under "link binaries libraries"
  7. under "target dependencies" in same tab, hit + button
  8. now should see necessary files
  9. check yours , hit "add"
  10. again in "link binaries libraries" hit + button
  11. now .a file should show , can choose , add it

now using chosen library target. repeat steps every target needs subproject. hope helps! me did because not manage add dependencies before...

greetz, tomte


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -