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 Jul 9, 2024
1 parent 8728da2 commit f772a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generate_xcframework() {

xcodebuild archive -project Sentry.xcodeproj/ -scheme "$scheme" -configuration "$resolved_configuration" -sdk "$sdk" -archivePath ./Carthage/archive/${scheme}${suffix}/${sdk}.xcarchive CODE_SIGNING_REQUIRED=NO SKIP_INSTALL=NO CODE_SIGN_IDENTITY= CARTHAGE=YES MACH_O_TYPE=$MACH_O_TYPE ENABLE_CODE_COVERAGE=NO GCC_GENERATE_DEBUGGING_SYMBOLS="$GCC_GENERATE_DEBUGGING_SYMBOLS"

createxcframework+="-framework Carthage/archive/${scheme}${suffix}/${sdk}.xcarchive/Products/Library/Frameworks/${scheme}.framework "
createxcframework+="-framework Carthage/archive/${scheme}${suffix}/${sdk}.xcarchive/Products/Library/Frameworks/${resolved_product_name}.framework "

if [ "$MACH_O_TYPE" = "staticlib" ]; then
local infoPlist="Carthage/archive/${scheme}${suffix}/${sdk}.xcarchive/Products/Library/Frameworks/${resolved_product_name}.framework/Info.plist"
Expand Down Expand Up @@ -68,7 +68,7 @@ generate_xcframework() {
createxcframework+="-debug-symbols $(pwd -P)/Carthage/DerivedData/Build/Products/"$resolved_configuration"-maccatalyst/${resolved_product_name}.framework.dSYM "
fi

createxcframework+="-output Carthage/${resolved_product_name}.xcframework"
createxcframework+="-output Carthage/${scheme}${suffix}.xcframework"
$createxcframework
}

Expand Down

0 comments on commit f772a63

Please sign in to comment.