}
private String setUp(PBXProjectCoder coder, String rootObject) {
Iterator i;
PBXProject pbxProject = (PBXProject) coder.objectForRef(rootObject);
PBXTarget mainTaget = (PBXTarget) pbxProject.getTargets().get(0);
PBXTarget appTarget = (PBXTarget) pbxProject.getTargets().get(1);
PBXTarget webTarget = (PBXTarget) pbxProject.getTargets().get(2);
PBXSourcesBuildPhase javaPhase = null;
PBXResourcesBuildPhase resourcesPhase = null;
PBXResourcesBuildPhase webResourcesPhase = null;
/**
* get build pahses (needed to find the files)
*/
i = appTarget.getBuildPhases().iterator();
while (i.hasNext()) {
Object o = i.next();
if (o.getClass() == PBXSourcesBuildPhase.class) {
javaPhase = (PBXSourcesBuildPhase) o;
}
if (o.getClass() == PBXResourcesBuildPhase.class) {
resourcesPhase = (PBXResourcesBuildPhase) o;
}
}
i = webTarget.getBuildPhases().iterator();
while (i.hasNext()) {
Object o = i.next();
if (o.getClass() == PBXResourcesBuildPhase.class) {
webResourcesPhase = (PBXResourcesBuildPhase) o;
}