[xctool] add the ability to swizzle class methods
[xctool] reduce build-tests overhead by invoking xcodebuild only once

now with tests passing