I ran my own original script again (it's always good to check these things) and I did get a return value, namely {"Build succeeded"}. Perhaps I should have mentioned, though that I ran the script from Script Editor (2.1) while Xcode (2.4) was running at the same time, with an open project...