Skip to content

Commit

Permalink
Update build-xcframework.sh (getsentry#4420)
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin authored Oct 9, 2024
1 parent 0a23401 commit 7cb89e0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/build-xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ args="${1:-}"

if [ "$args" = "iOSOnly" ]; then
sdks=( iphoneos iphonesimulator )
elif [ "$args" = "gameOnly" ]; then
sdks=( iphoneos iphonesimulator macosx )
else
sdks=( iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator )
fi
Expand Down Expand Up @@ -124,8 +126,9 @@ generate_xcframework "Sentry" "-Dynamic"

if [ "$args" != "iOSOnly" ]; then
generate_xcframework "Sentry" "" staticlib

generate_xcframework "SentrySwiftUI"

generate_xcframework "Sentry" "-WithoutUIKitOrAppKit" mh_dylib WithoutUIKit

if [ "$args" != "gameOnly" ]; then
generate_xcframework "SentrySwiftUI"
generate_xcframework "Sentry" "-WithoutUIKitOrAppKit" mh_dylib WithoutUIKit
fi
fi

0 comments on commit 7cb89e0

Please sign in to comment.