Change to ...

```
[task setLaunchPath:[XcodeDeveloperDirPath() stringByAppendingPathComponent:@"usr/bin/xcodebuild"]];
```

_/usr/bin/xcodebuild_ is actually an optional install, or, there's a chance it points to a different install of Xcode.