Skip to content

Commit a63a59f

Browse files
committed
fix: strip ObjC binary targets in prepare-package.sh
The --remove-duplicate flag strips Sentry-Dynamic and Sentry-WithoutUIKitOrAppKit binary targets but leaves SentryObjC-Dynamic and SentryObjC-Static. When combined with --change-path, the remaining ObjC binary targets point to local xcframework zips that are never built, causing SPM resolution failures for local 3rd-party integration testing.
1 parent 4f45d12 commit a63a59f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/prepare-package.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ for PACKAGE_FILE in "${PACKAGE_FILES[@]}"; do
139139
if is_enabled "$REMOVE_DUPLICATE"; then
140140
sed -i '' '/Sentry-Dynamic/d' "$PACKAGE_FILE"
141141
sed -i '' '/Sentry-WithoutUIKitOrAppKit/d' "$PACKAGE_FILE"
142+
sed -i '' '/SentryObjC-Dynamic/d' "$PACKAGE_FILE"
143+
sed -i '' '/SentryObjC-Static/d' "$PACKAGE_FILE"
142144
sed -i '' '/^[[:space:]]*\.binaryTarget($/{N;/\n[[:space:]]*),\{0,1\}$/d;}' "$PACKAGE_FILE"
143145
fi
144146

0 commit comments

Comments
 (0)