Skip to content

Commit

Permalink
Update build-xcframework.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Oct 3, 2024
1 parent 2d55fa6 commit bd12433
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/build-xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -eou pipefail

if [ "$1" = "reduced" ]; then
args="${1:-}"

if [ "$args" = "reduced" ]; then
sdks=( iphoneos iphonesimulator )
else
sdks=( iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator )
Expand Down Expand Up @@ -85,7 +87,7 @@ generate_xcframework() {
OTHER_LDFLAGS="-Wl,-make_mergeable"
fi

if [ "$1" != "reduced" ]; then
if [ "$args" != "reduced" ]; then
#Create framework for mac catalyst
xcodebuild \
-project Sentry.xcodeproj/ \
Expand Down Expand Up @@ -120,7 +122,7 @@ generate_xcframework() {

generate_xcframework "Sentry" "-Dynamic"

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

generate_xcframework "SentrySwiftUI"
Expand Down

0 comments on commit bd12433

Please sign in to comment.