From 41ab6d9c1591c9d275c32ee95f460e8c0fca78d9 Mon Sep 17 00:00:00 2001 From: williamzhang2013 Date: Wed, 16 Oct 2013 17:27:44 +0800 Subject: [PATCH 1/2] make -n para works --- ipa-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipa-build b/ipa-build index ac19194..1a8b9ec 100755 --- a/ipa-build +++ b/ipa-build @@ -164,7 +164,7 @@ fi compiled_path=${build_path}/${appdirname} #是否clean -if [ "$build_config" = "y" ];then +if [ "$should_clean" = "y" ];then xcodebuild clean fi From ca4e1808f7b772745d3be383d453938492f6cb76 Mon Sep 17 00:00:00 2001 From: williamzhang2013 Date: Wed, 16 Oct 2013 17:42:20 +0800 Subject: [PATCH 2/2] fix Distribute configure report bundleShortVersion/bundleVersion errir --- ipa-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipa-build b/ipa-build index 1a8b9ec..42ba763 100755 --- a/ipa-build +++ b/ipa-build @@ -160,6 +160,9 @@ appdirname=Release-iphoneos if [ $build_config = Debug ];then appdirname=Debug-iphoneos fi +if [ $build_config = Distribute ];then + appdirname=Distribute-iphoneos +fi #编译后文件路径(仅当编译workspace时才会用到) compiled_path=${build_path}/${appdirname}