Created
November 21, 2014 20:26
-
-
Save cellfusion/cd15a7d4f04d2f26d182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------------------------------------- | |
# コマンドラインでのipaと.dSYMファイルの作成 | |
#---------------------------------------------------------------------- | |
# .dSYMのPATH設定 | |
TARGET_DSYM=$WORKSPACE/iOS/build/[App Name].app.dSYM | |
# Zip出力する.dSYMファイルのPATH設定 | |
DSYM_ZIP_PATH=$WORKSPACE/iOS/build/[App Name].ipa.dSYM.zip | |
# xcodeプロジェクトパス | |
XCODE_PROJECT_PATH=$WORKSPACE/iOS | |
# appパス | |
TARGET_APP_PATH=$WORKSPACE/iOS/build/[App Name].app | |
# ipaパス | |
IPA_FILE_PATH=$WORKSPACE/iOS/build/[App Name].ipa | |
#------- .appからipa作成 -------# | |
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${TARGET_APP_PATH}" -o "${IPA_FILE_PATH}" | |
# ipaへの変換に失敗した場合 | |
EXIT_CODE=$? | |
if [ $EXIT_CODE -ne 0 ]; then | |
cat "can not build ipa file" | |
exit $EXIT_CODE | |
fi | |
#------ .dSYMをzip圧縮する -----# | |
zip -r $DSYM_ZIP_PATH $TARGET_DSYM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment