modified for xcodebuild.