Skip to content

Commit

Permalink
feat: visionos
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Apr 29, 2024
1 parent a5218dd commit 9813f4b
Show file tree
Hide file tree
Showing 43 changed files with 45 additions and 35,494 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,16 @@
PRODUCT_BUNDLE_IDENTIFIER = com.github.triniwiz.CanvasNative;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
REEXPORTED_LIBRARY_NAMES = "";
SDKROOT = "";
SEPARATE_SYMBOL_EDIT = NO;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = YES;
STRIP_SWIFT_SYMBOLS = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
USE_HEADERMAP = NO;
};
name = Debug;
Expand Down Expand Up @@ -666,14 +668,16 @@
PRODUCT_BUNDLE_IDENTIFIER = com.github.triniwiz.CanvasNative;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
REEXPORTED_LIBRARY_NAMES = "";
SDKROOT = "";
SEPARATE_SYMBOL_EDIT = NO;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = YES;
STRIP_SWIFT_SYMBOLS = YES;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2,7";
USE_HEADERMAP = NO;
};
name = Release;
Expand Down
Binary file not shown.
47 changes: 39 additions & 8 deletions packages/canvas/src-native/canvas-ios/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
echo "Set exit on simple errors"
set -e

rm -rf $(PWD)/dist
BUILD_DIR=$(PWD)/dist
rm -rf $BUILD_DIR

echo "Build for iphonesimulator"
xcodebuild \
Expand All @@ -13,7 +14,7 @@ xcodebuild \
-destination "generic/platform=iOS Simulator" \
-configuration Release \
clean build \
BUILD_DIR=$(PWD)/dist \
BUILD_DIR=$BUILD_DIR \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES

Expand All @@ -25,17 +26,47 @@ xcodebuild \
-destination "generic/platform=iOS" \
-configuration Release \
clean build \
BUILD_DIR=$(PWD)/dist \
BUILD_DIR=$BUILD_DIR \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES

# Only available with Xcode >= 15.2
echo "Build for visionOS Simulator"
xcodebuild \
-project CanvasNative.xcodeproj \
-scheme CanvasNative \
-configuration Release \
-destination "generic/platform=visionOS Simulator" \
clean build \
BUILD_DIR=$BUILD_DIR \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
-quiet

echo "Build for visionOS"
xcodebuild \
-project CanvasNative.xcodeproj \
-scheme CanvasNative \
-configuration Release \
-destination "generic/platform=visionOS" \
clean build \
BUILD_DIR=$BUILD_DIR \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
-quiet

echo "Creating XCFramework"
BASE=$BUILD_DIR/Release
xcodebuild \
-create-xcframework \
-framework $(PWD)/dist/Release-iphoneos/CanvasNative.framework \
-debug-symbols $(PWD)/dist/Release-iphoneos/CanvasNative.framework.dSYM \
-framework $(PWD)/dist/Release-iphonesimulator/CanvasNative.framework \
-debug-symbols $(PWD)/dist/Release-iphonesimulator/CanvasNative.framework.dSYM \
-output $(PWD)/dist/CanvasNative.xcframework
-framework $BASE-iphoneos/CanvasNative.framework \
-debug-symbols $BASE-iphoneos/CanvasNative.framework.dSYM \
-framework $BASE-iphonesimulator/CanvasNative.framework \
-debug-symbols $BASE-iphonesimulator/CanvasNative.framework.dSYM \
-framework $BASE-xrsimulator/CanvasNative.framework \
-debug-symbols $BASE-xrsimulator/CanvasNative.framework.dSYM \
-framework $BASE-xros/CanvasNative.framework \
-debug-symbols $BASE-xros/CanvasNative.framework.dSYM \
-output $BASE/CanvasNative.xcframework

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 9813f4b

Please sign in to comment.