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

Update of Private Headers from Xcode 15.4 #443

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
346 changes: 290 additions & 56 deletions DeviceAgent.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion DeviceAgent/DeviceAgent-device.xctestrun
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>IsUITestBundle</key>
<true/>
<key>TestBundleDestinationRelativePath</key>
<key>TestBundlePath</key>
<string>__TESTHOST__/PlugIns/DeviceAgent.xctest</string>
<key>TestHostBundleIdentifier</key>
<string>sh.calaba.DeviceAgent.xctrunner</string>
Expand Down
2 changes: 1 addition & 1 deletion DeviceAgent/FBFailureProofTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
Test Case that will never fail or stop from running in case of failure
*/
@interface FBFailureProofTestCase : XCTestCase;
@interface FBFailureProofTestCase : XCTestCase
@end

NS_ASSUME_NONNULL_END
11 changes: 2 additions & 9 deletions DeviceAgent/FBFailureProofTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,10 @@ @interface FBFailureProofTestCase ()
@implementation FBFailureProofTestCase

- (void)setUp {
[super setUp];
self.continueAfterFailure = YES;
if ([self respondsToSelector:@selector(internalImplementation)]) {
// The `internalImplementation` API has been removed since Xcode 11.4
self.internalImplementation =
(_XCTestCaseImplementation *)[FBXCTestCaseImplementationFailureHoldingProxy
proxyWithXCTestCaseImplementation:self.internalImplementation];
} else {
[super setUp];
self.continueAfterFailure = YES;
self.shouldSetShouldHaltWhenReceivesControl = NO;
self.shouldHaltWhenReceivesControl = NO;
}
}

/**
Expand Down
9 changes: 3 additions & 6 deletions DeviceAgent/TestRunner.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

Expand All @@ -14,11 +13,9 @@ @implementation TestRunner
- (void)setUp {
[super setUp];
self.continueAfterFailure = YES;

/*
* Route exceptions should be caught inside of the server.
* Any exception that makes it this far should therefore kill the test.
*/

// Route exceptions should be caught inside of the server.
// Any exception that makes it this far should therefore kill the test.
NSSetUncaughtExceptionHandler(&handleException);
}

Expand Down
5 changes: 2 additions & 3 deletions Server/Application/Application.m
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ + (void)launchAppWithBundleId:(NSString *_Nullable)bundleId
launchEnv:(NSDictionary *_Nullable)environment
terminateIfRunning:(BOOL)terminateIfRunning {

XCUIApplication *application = [[XCUIApplication alloc]
initWithBundleIdentifier:bundleId];
XCUIApplication *application = [[XCUIApplication alloc] initWithBundleIdentifier:bundleId];

if (terminateIfRunning) {
[Application terminateApplication:application];
Expand Down Expand Up @@ -223,7 +222,7 @@ + (void)setPickerWheelValue:(int)pickerIndex

// Getting pickers from Application's view.
XCUIApplication *application = [Application currentApplication];
XCUIElementQuery *pickersQuery = [application descendantsMatchingType:XCUIElementTypePicker];
XCUIElementQuery *pickersQuery = [(XCUIElement *)application descendantsMatchingType:XCUIElementTypePicker];
NSArray <XCUIElement *> *pickers = [pickersQuery allElementsBoundByIndex];

// Checking is there any picker on the screen.
Expand Down
5 changes: 2 additions & 3 deletions Server/Application/SpringBoard.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ + (instancetype)application {
static SpringBoard *_springBoard;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_springBoard = [[SpringBoard alloc]
initWithBundleIdentifier:@"com.apple.springboard"];
_springBoard = [[SpringBoard alloc] initWithBundleIdentifier:@"com.apple.springboard"];

[XCUIApplication cbxResolveApplication:_springBoard];
});
Expand All @@ -64,7 +63,7 @@ - (XCUIElement *)queryForAlert {
// Collect timing info
NSTimeInterval startTime = [[CBXMachClock sharedClock] absoluteTime];

XCUIElementQuery *query = [self descendantsMatchingType:XCUIElementTypeAlert];
XCUIElementQuery *query = [(XCUIElement *)self descendantsMatchingType:XCUIElementTypeAlert];
NSArray <XCUIElement *> *elements = [query allElementsBoundByIndex];

if ([elements count] != 0) {
Expand Down
2 changes: 1 addition & 1 deletion Server/AutomationActions/Gestures/ClearText.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ - (NSPredicate *)deleteKeyPredicate {

- (XCUIElement *)deleteKey {
XCUIApplication *application = [Application currentApplication];
XCUIElementQuery *query = [application descendantsMatchingType:XCUIElementTypeKey];
XCUIElementQuery *query = [(XCUIElement *) application descendantsMatchingType:XCUIElementTypeKey];
XCUIElementQuery *matching = [query matchingPredicate:[self deleteKeyPredicate]];
NSArray <XCUIElement *> *elements = [matching allElementsBoundByIndex];

Expand Down
27 changes: 20 additions & 7 deletions Server/PrivateHeaders/CBX-XCTest-Umbrella.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#import "XCTestCore/MXMInstrumental-Protocol.h"
#import "XCTestCore/NSArray-XCTestAdditions.h"
#import "XCTestCore/NSBundle-XCTestAdditions.h"
#import "XCTestCore/NSDateFormatter-XCTDateFormatting.h"
#import "XCTestCore/NSError-XCTTestRunSession.h"
#import "XCTestCore/NSException-XCTestAdditions.h"
#import "XCTestCore/NSKeyedArchiver-XCTestAdditions.h"
Expand All @@ -25,6 +26,7 @@
#import "XCTestCore/XCTApplicationBundleInfo.h"
#import "XCTestCore/XCTApplicationLaunchMetric.h"
#import "XCTestCore/XCTAttachment.h"
#import "XCTestCore/XCTAttachmentFuture.h"
#import "XCTestCore/XCTAttachmentManager.h"
#import "XCTestCore/XCTBlockingQueue.h"
#import "XCTestCore/XCTCPUMetric.h"
Expand All @@ -33,6 +35,8 @@
#import "XCTestCore/XCTContext.h"
#import "XCTestCore/XCTDaemonTelemetryLogger.h"
#import "XCTestCore/XCTDarwinNotificationExpectation.h"
#import "XCTestCore/XCTDateDescriptionFormatter.h"
#import "XCTestCore/XCTDateFormatting-Protocol.h"
#import "XCTestCore/XCTDefaultDebugLogHandler.h"
#import "XCTestCore/XCTExecutionExtension-Protocol.h"
#import "XCTestCore/XCTExecutionWorker.h"
Expand All @@ -44,6 +48,7 @@
#import "XCTestCore/XCTFailableInvocation.h"
#import "XCTestCore/XCTFixedPriorityTestScheduler.h"
#import "XCTestCore/XCTFuture.h"
#import "XCTestCore/XCTHarnessEventReporting-Protocol.h"
#import "XCTestCore/XCTImageEncoding-XCTImageQuality.h"
#import "XCTestCore/XCTInProcessSymbolicationService.h"
#import "XCTestCore/XCTIssue.h"
Expand All @@ -65,7 +70,9 @@
#import "XCTestCore/XCTMessagingChannel_RunnerToIDE-Protocol.h"
#import "XCTestCore/XCTMessagingRole_AccessibilityNotificationReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ActivityReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ActivityReporting_Legacy-Protocol.h"
#import "XCTestCore/XCTMessagingRole_AttachmentFinalizing-Protocol.h"
#import "XCTestCore/XCTMessagingRole_AttachmentFutureResultStatusUpdating-Protocol.h"
#import "XCTestCore/XCTMessagingRole_AttachmentsDeleting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_BundleRequesting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_CapabilityExchange-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ControlSessionInitiation-Protocol.h"
Expand All @@ -77,19 +84,17 @@
#import "XCTestCore/XCTMessagingRole_HIDEventRecording-Protocol.h"
#import "XCTestCore/XCTMessagingRole_MemoryTesting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_PerformanceMeasurementReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_PerformanceMeasurementReporting_Legacy-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ProcessMonitoring-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ProtectedResourceAuthorization-Protocol.h"
#import "XCTestCore/XCTMessagingRole_RunnerSessionInitiation-Protocol.h"
#import "XCTestCore/XCTMessagingRole_ScreenRecording-Protocol.h"
#import "XCTestCore/XCTMessagingRole_SelfDiagnosisIssueReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_SignpostReceiving-Protocol.h"
#import "XCTestCore/XCTMessagingRole_SignpostRequesting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_SiriAutomation-Protocol.h"
#import "XCTestCore/XCTMessagingRole_SystemConfiguration-Protocol.h"
#import "XCTestCore/XCTMessagingRole_TestExecution-Protocol.h"
#import "XCTestCore/XCTMessagingRole_TestExecution_Legacy-Protocol.h"
#import "XCTestCore/XCTMessagingRole_TestReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_TestReporting_Legacy-Protocol.h"
#import "XCTestCore/XCTMessagingRole_UIAutomation-Protocol.h"
#import "XCTestCore/XCTMessagingRole_UIAutomationEventReporting-Protocol.h"
#import "XCTestCore/XCTMessagingRole_UIRecordingControl-Protocol.h"
Expand Down Expand Up @@ -120,6 +125,9 @@
#import "XCTestCore/XCTRunnerDaemonSessionUIAutomationDelegate-Protocol.h"
#import "XCTestCore/XCTRunnerIDESession.h"
#import "XCTestCore/XCTRunnerIDESessionDelegate-Protocol.h"
#import "XCTestCore/XCTRuntimeIssueDetectionManager.h"
#import "XCTestCore/XCTRuntimeIssueDetectionPolicy.h"
#import "XCTestCore/XCTScreenCapturePolicy.h"
#import "XCTestCore/XCTSerializedTransportWrapper.h"
#import "XCTestCore/XCTSignpostListener-Protocol.h"
#import "XCTestCore/XCTSignpostListener.h"
Expand Down Expand Up @@ -150,10 +158,10 @@
#import "XCTestCore/XCTVariationOptions.h"
#import "XCTestCore/XCTWaiter.h"
#import "XCTestCore/XCTWaiterDelegate-Protocol.h"
#import "XCTestCore/XCTWaiterInterruptionCompletionHandler.h"
#import "XCTestCore/XCTWaiterManagement-Protocol.h"
#import "XCTestCore/XCTWaiterManager-Protocol.h"
#import "XCTestCore/XCTWaiterManager.h"
#import "XCTestCore/XCTWaiterWait.h"
#import "XCTestCore/XCTest.h"
#import "XCTestCore/XCTestCase.h"
#import "XCTestCore/XCTestCaseDiscoveryUIAutomationDelegate-Protocol.h"
Expand All @@ -180,8 +188,8 @@
#import "XCTestCore/XCTestRun.h"
#import "XCTestCore/XCTestSuite.h"
#import "XCTestCore/XCTestSuiteRun.h"
#import "XCTestCore/XCUIXcodeApplicationManaging-Protocol.h"
#import "XCTestCore/_Dummy_ConformingToLegacyProtocolNames.h"
#import "XCTestCore/_XCTExceptionPointer.h"
#import "XCTestCore/_XCTRunnerDaemonSessionDummyExportedObject.h"
#import "XCTestCore/_XCTSkipFailureException.h"
#import "XCTestCore/_XCTTestIdentifierPlaceholder.h"
Expand All @@ -196,7 +204,9 @@
#import "XCTestCore/_XCTestCaseInterruptionException.h"
#import "XCTestCore/_XCTestObservationInternal-Protocol.h"
#import "XCTestCore/_XCTestObservationPrivate-Protocol.h"
#import "XCUIAutomation/CDStructures.h"
#import "XCUIAutomation/NSError-XCUIApplicationProcess.h"
#import "XCUIAutomation/NSString-XCUIAdditions.h"
#import "XCUIAutomation/XCAXClient_iOS.h"
#import "XCUIAutomation/XCActivityRecord-UITesting.h"
#import "XCUIAutomation/XCApplicationQuery.h"
Expand All @@ -219,8 +229,10 @@
#import "XCUIAutomation/XCTMemoryChecker-XCUIAutomation.h"
#import "XCUIAutomation/XCTMemoryMetric-UIAutomation_Private.h"
#import "XCUIAutomation/XCTMessagingChannel_RunnerToUIProcess-Protocol.h"
#import "XCUIAutomation/XCTMessagingChannel_UIProcessToRunner-Protocol.h"
#import "XCUIAutomation/XCTMessagingRole_UIApplicationStateUpdating-Protocol.h"
#import "XCUIAutomation/XCTMessagingRole_UIAutomationProcess-Protocol.h"
#import "XCUIAutomation/XCTMessagingRole_UIAutomationProcessObserving-Protocol.h"
#import "XCUIAutomation/XCTMetricDiagnosticHelper-UIAutomation.h"
#import "XCUIAutomation/XCTNSPredicateExpectationObject-Protocol.h"
#import "XCUIAutomation/XCTRunnerAutomationSession-Protocol.h"
Expand Down Expand Up @@ -260,6 +272,7 @@
#import "XCUIAutomation/XCUIDefaultIssueHandler.h"
#import "XCUIAutomation/XCUIDevice.h"
#import "XCUIAutomation/XCUIDeviceAutomationModeInterface-Protocol.h"
#import "XCUIAutomation/XCUIDeviceDelayedAttachmentTransferSupportInterface-Protocol.h"
#import "XCUIAutomation/XCUIDeviceEventAndStateInterface-Protocol.h"
#import "XCUIAutomation/XCUIDeviceSetupManager.h"
#import "XCUIAutomation/XCUIElement.h"
Expand Down Expand Up @@ -304,5 +317,5 @@
#import "XCUIAutomation/XCUISnapshotGenerationTracker.h"
#import "XCUIAutomation/XCUISystem.h"
#import "XCUIAutomation/XCUITransformParameters.h"
#import "XCUIAutomation/_XCTMessaging_VoidProtocol-Protocol.h"
#import "XCUIAutomation/XCUIXcodeApplicationManaging-Protocol.h"
#endif
7 changes: 0 additions & 7 deletions Server/PrivateHeaders/CDStructures.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,3 @@ typedef struct {
NSInteger _field3;
} CDStruct_2ec95fd7;

typedef struct {
NSObject *userDispatchQueue;
id dispatchTarget;
CDUnknownBlockType messageHandler;
CDUnknownBlockType dispatchValidator;
} CDStruct_f5f3468d;

20 changes: 20 additions & 0 deletions Server/PrivateHeaders/DTXConnectionServices/CDStructures.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

@class NSObject;

#import <Foundation/Foundation.h>
#import "CDStructures.h"

#pragma mark Typedef'd Structures

typedef struct {
NSObject *userDispatchQueue;
id dispatchTarget;
CDUnknownBlockType messageHandler;
CDUnknownBlockType dispatchValidator;
} CDStruct_f5f3468d;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
- (BOOL)uncompressBuffer:(const char *)arg1 ofLength:(NSUInteger)arg2 toBuffer:(char *)arg3 withKnownUncompressedLength:(NSUInteger)arg4 usingCompressionType:(NSInteger)arg5;



@end

1 change: 1 addition & 0 deletions Server/PrivateHeaders/DTXConnectionServices/DTXChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
- (void)suspend;



@end

Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@
- (void)suspend;



@end

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
NSObject<OS_dispatch_queue> *_outputQueue;
NSObject<OS_dispatch_source> *_listenSource;
NSObject<OS_dispatch_source> *_deadPortSource;
CDUnknownBlockType _inputReaderBlock;
CDUnknownBlockType _disconnectBlock;
struct DTXMachMessage *_sendBuffer;
NSUInteger _bufferedLength;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
4 changes: 2 additions & 2 deletions Server/PrivateHeaders/DTXConnectionServices/DTXProxyChannel.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// class-dump results processed by bin/class-dump/dump.rb
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 26 2020 14:08:26).
// Generated by classdump-c 4.2.0 (64 bit) (iOS port by DreamDevLost, Updated by Kevin Bradley.)(Debug version compiled May 27 2023 00:50:17).
//
// Copyright (C) 1997-2019 Steve Nygard.
// Copyright (C) 1997-2019 Steve Nygard. Updated in 2022 by Kevin Bradley.
//

#import <Foundation/Foundation.h>
Expand Down
Loading