Skip to content

Commit

Permalink
Merge pull request #222 from mapbox/sapial/CORESDK-3099/0
Browse files Browse the repository at this point in the history
Support for maccatalyst in Turf
  • Loading branch information
aleksproger authored Oct 16, 2024
2 parents a4aeee2 + 7a142fb commit 0ab7b51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Turf.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,10 @@
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.turf;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator maccatalyst macosx watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = 2;
};
name = Debug;
};
Expand All @@ -633,7 +635,9 @@
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.turf;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator maccatalyst macosx watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
TARGETED_DEVICE_FAMILY = 2;
};
name = Release;
};
Expand Down
5 changes: 3 additions & 2 deletions scripts/xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eou pipefail
TEMPORARY_DIRECTORY=$(mktemp -d)
echo "Temporary directory: $TEMPORARY_DIRECTORY"

platforms=("iOS" "iOS Simulator" "macOS" "tvOS" "tvOS Simulator" "watchOS" "watchOS Simulator" "visionOS" "visionOS Simulator")
platforms=("iOS" "iOS Simulator" "macOS" "macOS,variant=Mac Catalyst" "tvOS" "tvOS Simulator" "watchOS" "watchOS Simulator" "visionOS" "visionOS Simulator")

# build Turf for each platform

Expand All @@ -17,7 +17,8 @@ do
-archivePath "$TEMPORARY_DIRECTORY/archives/Turf-$platform.xcarchive" \
-destination "generic/platform=$platform" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
SUPPORTS_MACCATALYST=YES

commands+=("-archive" "$TEMPORARY_DIRECTORY/archives/Turf-$platform.xcarchive")
commands+=("-framework" "Turf.framework")
Expand Down

0 comments on commit 0ab7b51

Please sign in to comment.