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:
- select target should use newly added subproject
- in "link binaries libraries" under build phases hit + button
- if library does´t show hit "add other..."
- navigate folder project file (*.xcodeproj) lies
- mark , hit "open"
- now should see project file show under "link binaries libraries"
- under "target dependencies" in same tab, hit + button
- now should see necessary files
- check yours , hit "add"
- again in "link binaries libraries" hit + button
- 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
Post a Comment