I have projects called A.xcodeproj, B.xcodeproj, C.xcodeproj
now what is question, in AppDelegate of Project A , open project B and C on condition.
int r
on the command line use open to OPEN and SHOW xcode.. so in your case, when run == 0
open
run == 0
when you want to BUILD the xcode project, invoke xcodebuild instead of open!..so in your case, when run == 1
xcodebuild
run == 1