diff --git a/CwlMachBadInstructionHandler.podspec b/CwlMachBadInstructionHandler.podspec index 94445e1..9823f77 100644 --- a/CwlMachBadInstructionHandler.podspec +++ b/CwlMachBadInstructionHandler.podspec @@ -14,6 +14,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '12.0' s.osx.deployment_target = '10.14' + s.visionos.deployment_target = '1.0' s.swift_version = '5.5' end diff --git a/CwlPosixPreconditionTesting.podspec b/CwlPosixPreconditionTesting.podspec index 09faa6b..aa8c49b 100644 --- a/CwlPosixPreconditionTesting.podspec +++ b/CwlPosixPreconditionTesting.podspec @@ -14,6 +14,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '12.0' s.osx.deployment_target = '10.14' + s.visionos.deployment_target = '1.0' s.swift_version = '5.5' end diff --git a/CwlPreconditionTesting.podspec b/CwlPreconditionTesting.podspec index 936dd27..2c45f7f 100644 --- a/CwlPreconditionTesting.podspec +++ b/CwlPreconditionTesting.podspec @@ -14,6 +14,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '12.0' s.osx.deployment_target = '10.14' + s.visionos.deployment_target = '1.0' s.swift_version = '5.5' diff --git a/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m b/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m index 168fa5b..0af0e8e 100644 --- a/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m +++ b/Sources/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m @@ -20,7 +20,7 @@ #ifdef __APPLE__ #import "TargetConditionals.h" -#if TARGET_OS_OSX || TARGET_OS_IOS +#if TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_VISION #import "mach_excServer.h" #import "CwlMachBadInstructionHandler.h" diff --git a/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h b/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h index 6feabe5..ade03df 100644 --- a/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h +++ b/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h @@ -20,7 +20,7 @@ #import -#if TARGET_OS_OSX || TARGET_OS_IOS +#if TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_VISION #import diff --git a/Sources/CwlMachBadInstructionHandler/mach_excServer.c b/Sources/CwlMachBadInstructionHandler/mach_excServer.c index ccd8f84..c6f4141 100644 --- a/Sources/CwlMachBadInstructionHandler/mach_excServer.c +++ b/Sources/CwlMachBadInstructionHandler/mach_excServer.c @@ -10,7 +10,7 @@ #define __MIG_check__Request__mach_exc_subsystem__ 1 #import "mach_excServer.h" -#if TARGET_OS_OSX || TARGET_OS_IOS +#if TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_VISION #ifndef mig_internal #define mig_internal static __inline__ diff --git a/Sources/CwlMachBadInstructionHandler/mach_excServer.h b/Sources/CwlMachBadInstructionHandler/mach_excServer.h index 1f03d66..941b227 100644 --- a/Sources/CwlMachBadInstructionHandler/mach_excServer.h +++ b/Sources/CwlMachBadInstructionHandler/mach_excServer.h @@ -1,6 +1,6 @@ #ifdef __APPLE__ #import "TargetConditionals.h" -#if TARGET_OS_OSX || TARGET_OS_IOS +#if TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_VISION #ifndef _mach_exc_server_ #define _mach_exc_server_ diff --git a/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift b/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift index 08d3ab6..002219d 100644 --- a/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift +++ b/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift @@ -18,7 +18,7 @@ // IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // -#if (os(macOS) || os(iOS)) && (arch(x86_64) || arch(arm64)) +#if (os(macOS) || os(iOS) || os(visionOS)) && (arch(x86_64) || arch(arm64)) import Foundation diff --git a/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift b/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift index 8f916c7..8960a77 100644 --- a/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift +++ b/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift @@ -18,7 +18,7 @@ // IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // -#if (os(macOS) || os(iOS)) && (arch(x86_64) || arch(arm64)) +#if (os(macOS) || os(iOS) || os(visionOS)) && (arch(x86_64) || arch(arm64)) import CwlCatchException import Foundation diff --git a/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift b/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift index ccce5c5..ad01ccf 100644 --- a/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift +++ b/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift @@ -18,7 +18,7 @@ // IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // -#if (os(macOS) || os(iOS)) && (arch(x86_64) || arch(arm64)) +#if (os(macOS) || os(iOS) || os(visionOS)) && (arch(x86_64) || arch(arm64)) import Darwin diff --git a/Tests/CwlPreconditionTestingTests/CwlCatchBadInstructionTests.swift b/Tests/CwlPreconditionTestingTests/CwlCatchBadInstructionTests.swift index ac833cb..208854e 100644 --- a/Tests/CwlPreconditionTestingTests/CwlCatchBadInstructionTests.swift +++ b/Tests/CwlPreconditionTestingTests/CwlCatchBadInstructionTests.swift @@ -26,7 +26,7 @@ import CwlPreconditionTesting class CatchBadInstructionTests: XCTestCase { func testCatchBadInstruction() { - #if os(macOS) || os(iOS) + #if os(macOS) || os(iOS) || os(visionOS) // Test catching an assertion failure var reachedPoint1 = false var reachedPoint2 = false