Skip to content

Commit

Permalink
refa (Laerdal.Mac.CompileAndGenerateFatLibs.sh): the script now emits…
Browse files Browse the repository at this point in the history
… in the logs the exact sharpie command used to generate the api-definition-and-struct .cs files
  • Loading branch information
ksidirop-laerdal committed Jul 9, 2024
1 parent 1064f35 commit 51411a6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' "
Expand Down Expand Up @@ -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" \
Expand All @@ -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"
Expand Down

0 comments on commit 51411a6

Please sign in to comment.