Put files in your project root directory, like this YourProjectRootDirectory/AutoArchive/..
PROJECT_NAME="{project name}.xcodeproj"
SCHEME="scheme name"
PRODUCT_NAME="product name"
USE_XCTOOL=1
Run ipa_generator.sh
at any where, ipa will be created at YourProjectPath/output.
User xctool
as default command. =>Install xctool