Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visionOS support #33

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CwlMachBadInstructionHandler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CwlPosixPreconditionTesting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CwlPreconditionTesting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#import <Foundation/Foundation.h>

#if TARGET_OS_OSX || TARGET_OS_IOS
#if TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_VISION

#import <mach/mach.h>

Expand Down
2 changes: 1 addition & 1 deletion Sources/CwlMachBadInstructionHandler/mach_excServer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion Sources/CwlMachBadInstructionHandler/mach_excServer.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down