- Select Menu at Xcode.
- Product → Scheme → Edit Scheme
- Remove Actions which are not created by user in Archive → Post-action.
- Add new Run script action.
- Insert below contents in created Run script action.
echo "----------------------------------------------------------"
echo "AppSealing Run Script"
echo "----------------------------------------------------------"
APPSEALING_PLUGIN_JAR="${PROJECT_DIR}/AppSealingSDK/Tools/appsealing_plugin.jar"
ARCHIVE_APP_PATH="${ARCHIVE_PRODUCTS_PATH}/Applications/${FULL_PRODUCT_NAME}"
ARCHIVE_APP_EXECUTABLE="${ARCHIVE_PRODUCTS_PATH}/Applications/${FULL_PRODUCT_NAME}/${EXECUTABLE_NAME}"
java -jar "${APPSEALING_PLUGIN_JAR}" "${ARCHIVE_APP_PATH}" "${ARCHIVE_APP_EXECUTABLE}"
echo "----------------------------------------------------------"