Skip to content

Commit

Permalink
Merge pull request #79 from SCENEE/fix-xcode-10-errors
Browse files Browse the repository at this point in the history
Fix Xcode 10 errors
  • Loading branch information
scenee authored Jun 5, 2018
2 parents dce9e30 + 4c2da77 commit 7d8d94d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions libexec/relax-export
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export_archive () {
--embed "PROVISIONING_PROFILE=$mobileprovision" >/dev/null
fi

local ipa_path=$(find "$export_path" -maxdepth 1 -mindepth 1 -name "*.ipa" -print0 \
| xargs -0 stat -f"%m %N" | sort -rn \
| head -1 | cut -d" " -f 2-)
local ipa_path="$(read_path $distribution ipa)"
if [[ ! -n $ipa_path ]]; then
die "Not found IPA file in $export_path"
else
Expand Down
11 changes: 8 additions & 3 deletions libexec/util-build
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ read_path () {
local path=""
case $type in
ipa)
path="$(find "$data_root" -depth 1 -name "*.ipa")"
path="$(find "$data_root" -maxdepth 1 -mindepth 1 -name "*.ipa" -print0 \
| xargs -0 stat -f"%m %N" | sort -rn \
| head -1 | cut -d" " -f 2-)"
;;
build)
path=$data_root
;;
archive)
path="$(find "$data_root" -name "*.xcarchive" -depth 1)"
path="$(find "$data_root" -maxdepth 1 -mindepth 1 -name "*.xcarchive" -print0 \
| xargs -0 stat -f"%m %N" | sort -rn \
| head -1 | cut -d" " -f 2-)"
;;
esac

Expand Down Expand Up @@ -450,11 +454,12 @@ teardown_build () {
__kill_bg_xcodebuid_task

if [[ -d "$SRCROOT" ]]; then
find "${SRCROOT}" -name "*.${REL_BAK_EXT}" | \
while read bak
do
cp "$bak" "${bak%.$REL_BAK_EXT}"
rm "$bak"
done < <(find "${SRCROOT}" -name "*.${REL_BAK_EXT}")
done
fi
set -u
}
Expand Down

0 comments on commit 7d8d94d

Please sign in to comment.