Changed output path to build folder.
Changed build script to use xcodebuild instead of xctool.