Skip to content

Commit 96d4208

Browse files
authored
Fix macOS toolchains with Xcode new build system. (#28945)
Xcode's new build system requires the `Version` entry in Info.plist to have a particular date-based format.
1 parent 5a6236b commit 96d4208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build-toolchain-tensorflow

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ set -x
127127
YEAR=$(date +"%Y")
128128
MONTH=$(date +"%m")
129129
DAY=$(date +"%d")
130+
TOOLCHAIN_VERSION_DATE="5.0.${YEAR}${MONTH}${DAY}"
130131
TOOLCHAIN_VERSION="swift-tensorflow-LOCAL-${YEAR}-${MONTH}-${DAY}-a"
131132
ARCHIVE="${TOOLCHAIN_VERSION}-${HOST}.tar.gz"
132133
SYM_ARCHIVE="${TOOLCHAIN_VERSION}-osx-symbols.tar.gz"
@@ -159,6 +160,6 @@ fi
159160
darwin_toolchain_display_name="${DISPLAY_NAME}" \
160161
darwin_toolchain_display_name_short="${DISPLAY_NAME_SHORT}" \
161162
darwin_toolchain_xctoolchain_name="${TOOLCHAIN_NAME}" \
162-
darwin_toolchain_version="${TOOLCHAIN_VERSION}" \
163+
darwin_toolchain_version="${TOOLCHAIN_VERSION_DATE}" \
163164
darwin_toolchain_alias="Swift for TensorFlow" \
164165
${INSTALLER_PACKAGE}

0 commit comments

Comments
 (0)