I had to use a trick for building the engine.
I have XcodeDefault11.3.1 toolchain. But when I set it as below, it fail to build after downloding the Defold SDK with error (I don’t remember exactly) XcodeDefault11.0.xctoolchain … can’t found. Should I build the Defold SDK with the exact same version? (In this case by using 11.3.1)
wget -q -O - ${DM_PACKAGES_URL}/XcodeDefault11.3.1.xctoolchain.tar.gz | tar xz -C ${PLATFORMSDK_DIR} && \
mv ${PLATFORMSDK_DIR}/XcodeDefault.xctoolchain ${PLATFORMSDK_DIR}/XcodeDefault11.3.1.xctoolchain
RUN \
ln -s /usr/local/bin/llvm-ar /usr/local/bin/ar && \
ln -s ${PLATFORMSDK_DIR}/XcodeDefault11.3.1.xctoolchain/usr/lib/arc /usr/local/lib/arc
I trick it like this:
wget -q -O - ${DM_PACKAGES_URL}/XcodeDefault11.3.1.xctoolchain.tar.gz | tar xz -C ${PLATFORMSDK_DIR} && \
mv ${PLATFORMSDK_DIR}/XcodeDefault.xctoolchain ${PLATFORMSDK_DIR}/XcodeDefault11.0.xctoolchain
RUN \
ln -s /usr/local/bin/llvm-ar /usr/local/bin/ar && \
ln -s ${PLATFORMSDK_DIR}/XcodeDefault11.0.xctoolchain/usr/lib/arc /usr/local/lib/arc