From d8e9c7eadc64ad333385b30e57362a6d7b58aa3e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 10 Apr 2020 23:49:13 +0800 Subject: improve resign and ipagen --- xmake/modules/utils/ipa/package.lua | 3 +++ xmake/rules/xcode/storyboard/xmake.lua | 3 +++ 2 files changed, 6 insertions(+) diff --git a/xmake/modules/utils/ipa/package.lua b/xmake/modules/utils/ipa/package.lua index 0b3d6afcf..354da1150 100644 --- a/xmake/modules/utils/ipa/package.lua +++ b/xmake/modules/utils/ipa/package.lua @@ -40,6 +40,9 @@ function main (appdir, ipafile, iconfile) end ipafile = path.absolute(ipafile) + -- remove the old ipafile first + os.tryrm(ipafile) + -- the temporary directory local tmpdir = path.join(os.tmpdir(), "ipagen", appname) diff --git a/xmake/rules/xcode/storyboard/xmake.lua b/xmake/rules/xcode/storyboard/xmake.lua index 3c0146a78..fabc60082 100644 --- a/xmake/rules/xcode/storyboard/xmake.lua +++ b/xmake/rules/xcode/storyboard/xmake.lua @@ -57,6 +57,9 @@ rule("xcode.storyboard") cprint("${color.build.object}compiling.xcode.$(mode) %s", sourcefile) end + -- clear Base.lproj first + os.tryrm(base_lproj) + -- do compile local argv = {"--errors", "--warnings", "--notices", "--auto-activate-custom-fonts", "--output-format", "human-readable-text"} if is_plat("macosx") then -- cgit v1.3.1