added workspace parameter and updated the xcodebuidl command when using scheme and building for the simulator that the arch is set properly