From 51411a67383fd81fbca6c1d15c9d10dd4797e0b9 Mon Sep 17 00:00:00 2001 From: Kyriakos Sidiropoulos Date: Tue, 9 Jul 2024 16:00:18 +0200 Subject: [PATCH] refa (Laerdal.Mac.CompileAndGenerateFatLibs.sh): the script now emits in the logs the exact sharpie command used to generate the api-definition-and-struct .cs files --- .../Laerdal.Mac.CompileAndGenerateFatLibs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Laerdal.McuMgr.Bindings.MacCatalystAndIos.Native/Laerdal.Mac.CompileAndGenerateFatLibs.sh b/Laerdal.McuMgr.Bindings.MacCatalystAndIos.Native/Laerdal.Mac.CompileAndGenerateFatLibs.sh index 95f024dc..9a24839d 100755 --- a/Laerdal.McuMgr.Bindings.MacCatalystAndIos.Native/Laerdal.Mac.CompileAndGenerateFatLibs.sh +++ b/Laerdal.McuMgr.Bindings.MacCatalystAndIos.Native/Laerdal.Mac.CompileAndGenerateFatLibs.sh @@ -38,6 +38,8 @@ function print_macos_sdks() { echo "** xcode version : '$( "xcodebuild" -version )'" echo "** xcode sdks :" xcodebuild -showsdks + echo "** xcode sdks visible to sharpie :" + sharpie xcode -sdks echo echo "** SWIFT_BUILD_PATH : '$SWIFT_BUILD_PATH' " @@ -168,6 +170,7 @@ function create_fat_binaries() { fi echo "**** (FatBinaries 5/8) Generating binding api definition and structs" + set -x sharpie \ bind \ -sdk "$XCODEBUILD_TARGET_SDK_WITH_VERSION_IF_ANY" \ @@ -177,6 +180,7 @@ function create_fat_binaries() { "$SWIFT_OUTPUT_PATH/$SWIFT_PROJECT_NAME.framework/Headers/$SWIFT_PROJECT_NAME-Swift.h" \ -clang -arch arm64 # vital needed for mac-catalyst local exitCode=$? + set +x if [ $exitCode -ne 0 ]; then echo "** [FAILED] Failed to generate binding api definitions and structs"