From 883a6846d6aeabb192c50236d61ae706ca914630 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Thu, 10 Jun 2021 10:31:03 +0300 Subject: [PATCH] [[ Bug 23234 ]] Fix iOS standalone build error when running from source This patch fixes the error: Failed to open macho file at /../Xcodes/Xcode_12_5_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ for reading: Too many levels of symbolic links It seems there is a chance g++ is not symlinked correctly, so use the full path to clang++ instead. --- ide-support/revsaveasiosstandalone.livecodescript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ide-support/revsaveasiosstandalone.livecodescript b/ide-support/revsaveasiosstandalone.livecodescript index c9bc24e1b41..2d776038dbf 100644 --- a/ide-support/revsaveasiosstandalone.livecodescript +++ b/ide-support/revsaveasiosstandalone.livecodescript @@ -535,7 +535,11 @@ private command revSaveAsMobileStandaloneMain pStack, pAppBundle, pTarget, pSett -- MM-2013-09-23: [[ iOS7 Support ]] Use g++ instead of llvm-g++-4.2. XCode 5.0 uses llvm 5.0. -- g++ appears to be sym-linked to the appropriate compiler in all SDKS. -- SN-2015-02-19: [[ Bug 14625 ]] The minimum iOS version is bound to the architecture - get shell("g++ -arch " & tArch && "-miphoneos-version-min=" & tiPhoneMinVersion[tArch] && " -w " & quote & "@" & tLinkOptionsFile & quote) + + -- PM-2021-06-10: [[ Bug 23234 ]] g++ might not be symlinked correctly, so use full path to clang++ instead + local tCommand + put tSdkRoot & "/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" into tCommand + get shell(tCommand & " -arch " & tArch && "-miphoneos-version-min=" & tiPhoneMinVersion[tArch] && " -w " & quote & "@" & tLinkOptionsFile & quote) put tArchSpecificEngineFile & space after tArchSpecificEngineList delete file tLinkOptionsFile