Support building an archive

xcodebuild provides an option to build an archive, using the 'archive' action. This commit adds that functionality to xctool.