From 9e7f9a12d16f89d8d7d681a6313ff803f43fd22f Mon Sep 17 00:00:00 2001 From: Tomasz Trela <> Date: Wed, 27 Sep 2023 16:19:56 +0200 Subject: [PATCH] add VisionOS --- GLTFSceneKit.xcodeproj/project.pbxproj | 12 ++++++++++-- Sources/GLTFSceneKit/GLTFTypes.swift | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/GLTFSceneKit.xcodeproj/project.pbxproj b/GLTFSceneKit.xcodeproj/project.pbxproj index ce081700..ca8262b1 100644 --- a/GLTFSceneKit.xcodeproj/project.pbxproj +++ b/GLTFSceneKit.xcodeproj/project.pbxproj @@ -912,9 +912,11 @@ PRODUCT_NAME = GLTFSceneKit; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator"; + SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG"; SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2,6"; + TARGETED_DEVICE_FAMILY = "1,2,6,7"; }; name = Debug; }; @@ -939,9 +941,11 @@ PRODUCT_NAME = GLTFSceneKit; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator xros xrsimulator"; + SUPPORTS_MACCATALYST = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG"; SWIFT_VERSION = 4.2; - TARGETED_DEVICE_FAMILY = "1,2,6"; + TARGETED_DEVICE_FAMILY = "1,2,6,7"; VALIDATE_PRODUCT = YES; }; name = Release; @@ -1087,6 +1091,8 @@ PRODUCT_NAME = GLTFSceneKit; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG SEEMS_TO_HAVE_DOUBLESIDED_BUG SEEMS_TO_HAVE_SKINNER_VECTOR_TYPE_BUG"; SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_VERSION = 4.0; @@ -1116,6 +1122,8 @@ PRODUCT_NAME = GLTFSceneKit; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "SEEMS_TO_HAVE_PNG_LOADING_BUG SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_DOUBLESIDED_BUG SEEMS_TO_HAVE_SKINNER_VECTOR_TYPE_BUG"; SWIFT_OBJC_BRIDGING_HEADER = ""; SWIFT_VERSION = 4.0; diff --git a/Sources/GLTFSceneKit/GLTFTypes.swift b/Sources/GLTFSceneKit/GLTFTypes.swift index 91d9b90a..7e046825 100644 --- a/Sources/GLTFSceneKit/GLTFTypes.swift +++ b/Sources/GLTFSceneKit/GLTFTypes.swift @@ -108,7 +108,7 @@ let keyPathMap: [String: String] = [ #if os(macOS) typealias Image = NSImage typealias Color = NSColor -#elseif os(iOS) || os(tvOS) || os(watchOS) +#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) typealias Image = UIImage typealias Color = UIColor #endif