simtap 0.0.0-stage → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +192 -2
- package/THIRD_PARTY_LICENSES +61 -0
- package/bin/simtap.js +4 -0
- package/dist/act/diff.js +67 -0
- package/dist/act/resolve.js +49 -0
- package/dist/act/steps.js +188 -0
- package/dist/cli.js +123 -0
- package/dist/engine/apps.js +153 -0
- package/dist/engine/axe.js +107 -0
- package/dist/engine/exec.js +36 -0
- package/dist/engine/jobs.js +95 -0
- package/dist/engine/logs.js +115 -0
- package/dist/engine/simctl.js +191 -0
- package/dist/engine/state.js +30 -0
- package/dist/engine/xcode.js +253 -0
- package/dist/engine/xcresult.js +95 -0
- package/dist/errors.js +11 -0
- package/dist/look/read.js +50 -0
- package/dist/look/snapshot.js +455 -0
- package/dist/mcp.js +108 -0
- package/dist/registry.js +65 -0
- package/dist/tools/app-control.js +127 -0
- package/dist/tools/app-logs.js +128 -0
- package/dist/tools/app-run.js +94 -0
- package/dist/tools/device-use.js +68 -0
- package/dist/tools/devices.js +26 -0
- package/dist/tools/jobs.js +55 -0
- package/dist/tools/launch-app.js +68 -0
- package/dist/tools/screen-record.js +79 -0
- package/dist/tools/tests-run.js +81 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/ui-act.js +435 -0
- package/dist/tools/ui-look.js +40 -0
- package/package.json +45 -4
- package/skill/SKILL.md +23 -0
- package/vendor/axe/.version +1 -0
- package/vendor/axe/AXe_AXe.bundle/skills/axe/SKILL.md +87 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/FBControlCore +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBAccessibilityTraits.h +23 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBArchitecture.h +20 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBArchiveOperations.h +136 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBBinaryDescriptor.h +73 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCore-Swift.h +3232 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCore-SwiftImport.h +28 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCore.h +47 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCoreFrameworkLoader.h +104 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCoreLogger+OSLog.h +30 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCoreLogger.h +107 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBCrashLog.h +20 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBDataBuffer.h +75 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBDataConsumer.h +173 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFileContainer.h +46 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFileReader.h +25 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFourCharCode.h +30 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFuture+Sync.h +104 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFuture.h +580 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBFutureContextManager.h +61 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBInstalledApplication.h +30 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBInstrumentsCommands.h +29 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBInstrumentsOperation.h +83 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBObjCExceptionGuard.h +59 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBProcessBuilder.h +272 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBProcessFetcher.h +128 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBProcessIO.h +126 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBProcessStream.h +175 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBProcessTerminationStrategy.h +25 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBScreenshotCommands.h +15 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBSettingsCommands.h +22 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBSocketServer.h +63 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBSubprocess.h +131 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBVideoStream.h +255 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBVideoStreamConfiguration.h +51 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBXCTraceOperation.h +13 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBiOSTarget.h +69 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBiOSTargetConfiguration.h +322 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBiOSTargetConstants.h +48 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBiOSTargetOperation.h +18 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/arm64-apple-macos.abi.json +51890 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/arm64-apple-macos.private.swiftinterface +1341 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/arm64-apple-macos.swiftinterface +1341 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/arm64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/x86_64-apple-macos.abi.json +51890 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/x86_64-apple-macos.private.swiftinterface +1341 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/x86_64-apple-macos.swiftinterface +1341 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/FBControlCore.swiftmodule/x86_64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Modules/module.modulemap +10 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Resources/Info.plist +50 -0
- package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/_CodeSignature/CodeResources +492 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/FBDeviceControl +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAFCConnection.h +135 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMDServiceConnection.h +239 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMDefines.h +256 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMDevice.h +105 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMDeviceManager.h +59 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMRestorableDevice.h +72 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBAMRestorableDeviceManager.h +32 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDevice.h +89 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceCommands.h +147 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceControl-Swift.h +1500 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceControl.h +24 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceControlFrameworkLoader.h +25 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceDebugSymbolsCommands.h +29 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBDeviceManager.h +118 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Headers/FBInstrumentsClient.h +49 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/arm64-apple-macos.abi.json +16073 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/arm64-apple-macos.private.swiftinterface +398 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/arm64-apple-macos.swiftinterface +398 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/arm64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/x86_64-apple-macos.abi.json +16073 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/x86_64-apple-macos.private.swiftinterface +398 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/x86_64-apple-macos.swiftinterface +398 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/FBDeviceControl.swiftmodule/x86_64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Modules/module.modulemap +10 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/Resources/Info.plist +50 -0
- package/vendor/axe/Frameworks/FBDeviceControl.framework/Versions/A/_CodeSignature/CodeResources +324 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/FBSimulatorControl +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBFramebuffer.h +24 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBPeriodicStatsTimer.h +43 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimDeviceWrapper.h +86 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulator.h +160 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulatorBootConfiguration.h +18 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulatorControl-Swift.h +2270 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulatorControl.h +21 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulatorControlFrameworkLoader.h +45 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Headers/FBSimulatorVideoStream.h +153 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/arm64-apple-macos.abi.json +46980 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/arm64-apple-macos.private.swiftinterface +1072 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/arm64-apple-macos.swiftinterface +1072 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/arm64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/x86_64-apple-macos.abi.json +46980 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/x86_64-apple-macos.private.swiftinterface +1072 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/x86_64-apple-macos.swiftinterface +1072 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/FBSimulatorControl.swiftmodule/x86_64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Modules/module.modulemap +10 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Resources/Info.plist +50 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/Resources/README.md +124 -0
- package/vendor/axe/Frameworks/FBSimulatorControl.framework/Versions/A/_CodeSignature/CodeResources +293 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBActivityRecord.h +33 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBAttachment.h +25 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBCodeCoverageConfiguration.h +15 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBTestBundleConnection.h +37 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBTestConfiguration.h +74 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBTestManagerAPIMediator.h +46 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBTestManagerResultSummary.h +19 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBTestReporterAdapter.h +27 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/FBXCTestConfiguration.h +30 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/XCTestBootstrap-Swift.h +1570 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/XCTestBootstrap.h +22 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Headers/XCTestBootstrapError.h +25 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/arm64-apple-macos.abi.json +15972 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/arm64-apple-macos.private.swiftinterface +397 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/arm64-apple-macos.swiftinterface +397 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/arm64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/x86_64-apple-macos.abi.json +15972 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/x86_64-apple-macos.private.swiftinterface +397 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/x86_64-apple-macos.swiftdoc +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/x86_64-apple-macos.swiftinterface +397 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/XCTestBootstrap.swiftmodule/x86_64-apple-macos.swiftmodule +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Modules/module.modulemap +13 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/Resources/Info.plist +50 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/XCTestBootstrap +0 -0
- package/vendor/axe/Frameworks/XCTestBootstrap.framework/Versions/A/_CodeSignature/CodeResources +303 -0
- package/vendor/axe/axe +0 -0
package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCore-SwiftImport.h
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// This header imports all ObjC types referenced by Swift code,
|
|
9
|
+
// then imports FBControlCore-Swift.h. Stub headers for converted
|
|
10
|
+
// classes should import this file so that ObjC consumers get the
|
|
11
|
+
// Swift class declarations with all required types defined first.
|
|
12
|
+
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
|
|
15
|
+
#import <FBControlCore/FBArchiveOperations.h>
|
|
16
|
+
#import <FBControlCore/FBCrashLog.h>
|
|
17
|
+
#import <FBControlCore/FBFileReader.h>
|
|
18
|
+
#import <FBControlCore/FBInstalledApplication.h>
|
|
19
|
+
#import <FBControlCore/FBInstrumentsOperation.h>
|
|
20
|
+
#import <FBControlCore/FBProcessTerminationStrategy.h>
|
|
21
|
+
#import <FBControlCore/FBScreenshotCommands.h>
|
|
22
|
+
#import <FBControlCore/FBVideoStreamConfiguration.h>
|
|
23
|
+
#import <FBControlCore/FBiOSTarget.h>
|
|
24
|
+
#import <FBControlCore/FBiOSTargetConfiguration.h>
|
|
25
|
+
|
|
26
|
+
#if __has_include(<FBControlCore/FBControlCore-Swift.h>)
|
|
27
|
+
#import <FBControlCore/FBControlCore-Swift.h>
|
|
28
|
+
#endif
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <FBControlCore/FBAccessibilityTraits.h>
|
|
9
|
+
#import <FBControlCore/FBArchitecture.h>
|
|
10
|
+
#import <FBControlCore/FBArchiveOperations.h>
|
|
11
|
+
#import <FBControlCore/FBBinaryDescriptor.h>
|
|
12
|
+
#import <FBControlCore/FBControlCoreFrameworkLoader.h>
|
|
13
|
+
#import <FBControlCore/FBControlCoreLogger.h>
|
|
14
|
+
#import <FBControlCore/FBControlCoreLogger+OSLog.h>
|
|
15
|
+
#import <FBControlCore/FBCrashLog.h>
|
|
16
|
+
#import <FBControlCore/FBDataBuffer.h>
|
|
17
|
+
#import <FBControlCore/FBDataConsumer.h>
|
|
18
|
+
#import <FBControlCore/FBFileContainer.h>
|
|
19
|
+
#import <FBControlCore/FBFileReader.h>
|
|
20
|
+
#import <FBControlCore/FBFourCharCode.h>
|
|
21
|
+
#import <FBControlCore/FBFuture.h>
|
|
22
|
+
#import <FBControlCore/FBFuture+Sync.h>
|
|
23
|
+
#import <FBControlCore/FBFutureContextManager.h>
|
|
24
|
+
#import <FBControlCore/FBInstalledApplication.h>
|
|
25
|
+
#import <FBControlCore/FBInstrumentsCommands.h>
|
|
26
|
+
#import <FBControlCore/FBInstrumentsOperation.h>
|
|
27
|
+
#import <FBControlCore/FBObjCExceptionGuard.h>
|
|
28
|
+
#import <FBControlCore/FBProcessBuilder.h>
|
|
29
|
+
#import <FBControlCore/FBProcessFetcher.h>
|
|
30
|
+
#import <FBControlCore/FBProcessIO.h>
|
|
31
|
+
#import <FBControlCore/FBProcessStream.h>
|
|
32
|
+
#import <FBControlCore/FBProcessTerminationStrategy.h>
|
|
33
|
+
#import <FBControlCore/FBScreenshotCommands.h>
|
|
34
|
+
#import <FBControlCore/FBSettingsCommands.h>
|
|
35
|
+
#import <FBControlCore/FBSocketServer.h>
|
|
36
|
+
#import <FBControlCore/FBSubprocess.h>
|
|
37
|
+
#import <FBControlCore/FBVideoStream.h>
|
|
38
|
+
#import <FBControlCore/FBVideoStreamConfiguration.h>
|
|
39
|
+
#import <FBControlCore/FBXCTraceOperation.h>
|
|
40
|
+
#import <FBControlCore/FBiOSTarget.h>
|
|
41
|
+
#import <FBControlCore/FBiOSTargetConfiguration.h>
|
|
42
|
+
#import <FBControlCore/FBiOSTargetConstants.h>
|
|
43
|
+
#import <FBControlCore/FBiOSTargetOperation.h>
|
|
44
|
+
|
|
45
|
+
#if __has_include(<FBControlCore/FBControlCore-Swift.h>)
|
|
46
|
+
#import <FBControlCore/FBControlCore-Swift.h>
|
|
47
|
+
#endif
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@class FBWeakFramework;
|
|
11
|
+
@protocol FBControlCoreLogger;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
Loads a Symbol from a Handle, using dlsym.
|
|
15
|
+
Will assert if the symbol cannot be found.
|
|
16
|
+
|
|
17
|
+
@param handle the handle to obtain.
|
|
18
|
+
@param name the name of the symbol.
|
|
19
|
+
@return the Symbol if successful.
|
|
20
|
+
*/
|
|
21
|
+
void *_Nonnull FBGetSymbolFromHandle(void * _Nonnull handle, const char * _Nonnull name);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
Loads a Symbol from a Handle, using dlsym.
|
|
25
|
+
Will return a NULL pointer if the symbol cannot be found.
|
|
26
|
+
|
|
27
|
+
@param handle the handle to obtain.
|
|
28
|
+
@param name the name of the symbol.
|
|
29
|
+
@return the Symbol if successful.
|
|
30
|
+
*/
|
|
31
|
+
void *_Nullable FBGetSymbolFromHandleOptional(void * _Nonnull handle, const char * _Nonnull name);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
A Base Framework loader, that will ensure that the current user can load Frameworks.
|
|
35
|
+
*/
|
|
36
|
+
@interface FBControlCoreFrameworkLoader : NSObject
|
|
37
|
+
|
|
38
|
+
#pragma mark Initializers
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
The Designated Initializer
|
|
42
|
+
|
|
43
|
+
@param frameworkName the name of the loading framework.
|
|
44
|
+
@param frameworks the framework dependencies
|
|
45
|
+
@return a new Framework Loader
|
|
46
|
+
*/
|
|
47
|
+
+ (nonnull instancetype)loaderWithName:(nonnull NSString *)frameworkName frameworks:(nonnull NSArray<FBWeakFramework *> *)frameworks;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
The Designated Initializer
|
|
51
|
+
|
|
52
|
+
@param frameworkName the name of the loading framework.
|
|
53
|
+
@param frameworks the framework dependencies
|
|
54
|
+
@return a new Framework Loader
|
|
55
|
+
*/
|
|
56
|
+
- (nonnull instancetype)initWithName:(nonnull NSString *)frameworkName frameworks:(nonnull NSArray<FBWeakFramework *> *)frameworks;
|
|
57
|
+
|
|
58
|
+
#pragma mark Properties
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
The Named set of Frameworks.
|
|
62
|
+
*/
|
|
63
|
+
@property (nonnull, nonatomic, readonly, copy) NSString *frameworkName;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
The Frameworks to load.
|
|
67
|
+
*/
|
|
68
|
+
@property (nonnull, nonatomic, readonly, copy) NSArray<FBWeakFramework *> *frameworks;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
YES if the Frameworks are loaded, NO otherwise.
|
|
72
|
+
*/
|
|
73
|
+
@property (nonatomic, readonly, assign) BOOL hasLoadedFrameworks;
|
|
74
|
+
|
|
75
|
+
#pragma mark Public Methods
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
Confirms that the current user can load Frameworks.
|
|
79
|
+
Subclasses should load the frameworks upon which they depend.
|
|
80
|
+
|
|
81
|
+
@param logger the Logger to log events to.
|
|
82
|
+
@param error any error that occurred during performing the preconditions.
|
|
83
|
+
@return YES if FBSimulatorControl is usable, NO otherwise.
|
|
84
|
+
*/
|
|
85
|
+
- (BOOL)loadPrivateFrameworks:(nullable id<FBControlCoreLogger>)logger error:(NSError * _Nullable * _Nullable)error;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
Calls +[FBControlCore loadPrivateFrameworks:error], aborting in the event the Frameworks could not be loaded
|
|
89
|
+
*/
|
|
90
|
+
- (void)loadPrivateFrameworksOrAbort;
|
|
91
|
+
|
|
92
|
+
@end
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
Wrappers around NSBundle.
|
|
96
|
+
*/
|
|
97
|
+
@interface NSBundle (FBControlCoreFrameworkLoader)
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
Performs a dlopen on the executable path and returns the handle, or else aborts.
|
|
101
|
+
*/
|
|
102
|
+
- (void * _Nonnull)dlopenExecutablePath;
|
|
103
|
+
|
|
104
|
+
@end
|
package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCoreLogger+OSLog.h
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <FBControlCore/FBControlCoreLogger.h>
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
A logger implementation on top of os_log.
|
|
14
|
+
*/
|
|
15
|
+
@interface FBControlCoreLoggerFactory (OSLog)
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
Construct a new OS Log logger.
|
|
19
|
+
|
|
20
|
+
@pragma mark level the log level to use.
|
|
21
|
+
@return a new logger logging to os_log.
|
|
22
|
+
*/
|
|
23
|
+
+ (nullable id<FBControlCoreLogger>)osLoggerWithLevel:(FBControlCoreLogLevel)level;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
Returns YES if the system logger will log to stderr, NO otherwise.
|
|
27
|
+
*/
|
|
28
|
+
@property (class, nonatomic, readonly, assign) BOOL systemLoggerWillLogToStdErr;
|
|
29
|
+
|
|
30
|
+
@end
|
package/vendor/axe/Frameworks/FBControlCore.framework/Versions/A/Headers/FBControlCoreLogger.h
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
The Log Level.
|
|
12
|
+
The Multiple Level exists so that composite loggers can decide whether to log individually.
|
|
13
|
+
*/
|
|
14
|
+
typedef NS_ENUM(NSUInteger, FBControlCoreLogLevel) {
|
|
15
|
+
FBControlCoreLogLevelError = 1,
|
|
16
|
+
FBControlCoreLogLevelInfo = 2,
|
|
17
|
+
FBControlCoreLogLevelDebug = 3,
|
|
18
|
+
FBControlCoreLogLevelMultiple = 1000,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
@protocol FBDataConsumer;
|
|
22
|
+
|
|
23
|
+
// Protocol defined in Swift (FBControlCoreLoggerProtocol.swift)
|
|
24
|
+
@protocol FBControlCoreLogger;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
A composite logger that logs to many loggers
|
|
28
|
+
*/
|
|
29
|
+
@interface FBCompositeLogger : NSObject
|
|
30
|
+
|
|
31
|
+
#pragma mark Initializers
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
The Designated Initializer.
|
|
35
|
+
|
|
36
|
+
@param loggers the loggers to log to.
|
|
37
|
+
@return a composite logger.
|
|
38
|
+
*/
|
|
39
|
+
- (nonnull instancetype)initWithLoggers:(nonnull NSArray<id<FBControlCoreLogger>> *)loggers;
|
|
40
|
+
|
|
41
|
+
#pragma mark Properties
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
The loggers to log to.
|
|
45
|
+
*/
|
|
46
|
+
@property (nonnull, nonatomic, readonly, strong) NSArray<id<FBControlCoreLogger>> *loggers;
|
|
47
|
+
|
|
48
|
+
- (nonnull id<FBControlCoreLogger>)log:(nonnull NSString *)message;
|
|
49
|
+
- (nonnull id<FBControlCoreLogger>)info;
|
|
50
|
+
- (nonnull id<FBControlCoreLogger>)debug;
|
|
51
|
+
- (nonnull id<FBControlCoreLogger>)error;
|
|
52
|
+
- (nonnull id<FBControlCoreLogger>)withName:(nonnull NSString *)name;
|
|
53
|
+
- (nonnull id<FBControlCoreLogger>)withDateFormatEnabled:(BOOL)enabled;
|
|
54
|
+
@property (nullable, nonatomic, readonly, copy) NSString *name;
|
|
55
|
+
@property (nonatomic, readonly, assign) FBControlCoreLogLevel level;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
Implementations of Loggers.
|
|
61
|
+
*/
|
|
62
|
+
@interface FBControlCoreLoggerFactory : NSObject
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
An implementation of `FBControlCoreLogger` that logs using the OS's default logging framework.
|
|
66
|
+
Optionally logs to stderr.
|
|
67
|
+
|
|
68
|
+
@param writeToStdErr YES if all future log messages should be written to stderr, NO otherwise.
|
|
69
|
+
@param debugLogging YES if Debug messages should be written to stderr, NO otherwise.
|
|
70
|
+
@return an FBControlCoreLogger instance.
|
|
71
|
+
*/
|
|
72
|
+
+ (nonnull id<FBControlCoreLogger>)systemLoggerWritingToStderr:(BOOL)writeToStdErr withDebugLogging:(BOOL)debugLogging;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
Compose multiple loggers into one.
|
|
76
|
+
|
|
77
|
+
@param loggers the loggers to compose.
|
|
78
|
+
@return the composite logger.
|
|
79
|
+
*/
|
|
80
|
+
+ (nonnull FBCompositeLogger *)compositeLoggerWithLoggers:(nonnull NSArray<id<FBControlCoreLogger>> *)loggers;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
Log to a Consumer.
|
|
84
|
+
|
|
85
|
+
@param consumer the consumer to write data to.
|
|
86
|
+
@return a logger instance.
|
|
87
|
+
*/
|
|
88
|
+
+ (nonnull id<FBControlCoreLogger>)loggerToConsumer:(nonnull id<FBDataConsumer>)consumer;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
Log to a File Descriptor.
|
|
92
|
+
|
|
93
|
+
@param fileDescriptor the file descriptor to write to.
|
|
94
|
+
@param closeOnEndOfFile YES if the file descriptor should be closed on consumeEndOfFile, NO otherwise.
|
|
95
|
+
@return a logger instance.
|
|
96
|
+
*/
|
|
97
|
+
+ (nonnull id<FBControlCoreLogger>)loggerToFileDescriptor:(int)fileDescriptor closeOnEndOfFile:(BOOL)closeOnEndOfFile;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
Strips the newline and returns a nullable string if the string shouldn't be logged.
|
|
101
|
+
|
|
102
|
+
@param string the string to log.
|
|
103
|
+
@return the modifier string.
|
|
104
|
+
*/
|
|
105
|
+
+ (nullable NSString *)loggableStringLine:(nullable NSString *)string;
|
|
106
|
+
|
|
107
|
+
@end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
@protocol FBControlCoreLogger;
|
|
11
|
+
@protocol FBCrashLogParser;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
An emuration representing the kind of process that has crashed.
|
|
15
|
+
*/
|
|
16
|
+
typedef NS_OPTIONS(NSUInteger, FBCrashLogInfoProcessType) {
|
|
17
|
+
FBCrashLogInfoProcessTypeSystem = 1 << 0, /** A process that is part of the operating system runtime */
|
|
18
|
+
FBCrashLogInfoProcessTypeApplication = 1 << 1, /** A process that is an application **/
|
|
19
|
+
FBCrashLogInfoProcessTypeCustom = 1 << 2, /** A process that not an application nor part of the operating system runtime **/
|
|
20
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <FBControlCore/FBDataConsumer.h>
|
|
11
|
+
|
|
12
|
+
// Protocols defined in Swift (FBDataBufferProtocols.swift)
|
|
13
|
+
@protocol FBAccumulatingBuffer;
|
|
14
|
+
@protocol FBConsumableBuffer;
|
|
15
|
+
@protocol FBNotifyingBuffer;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
Implementations of data buffers.
|
|
19
|
+
Writes and reads are fully synchronized.
|
|
20
|
+
*/
|
|
21
|
+
@interface FBDataBuffer : NSObject
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
A data buffer that is only mutated through consuming data.
|
|
25
|
+
|
|
26
|
+
@return a FBDataBuffer implementation.
|
|
27
|
+
*/
|
|
28
|
+
+ (nonnull id<FBAccumulatingBuffer>)accumulatingBuffer;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
A data buffer that is only mutated through consuming data.
|
|
32
|
+
Has a capacity set, if the capacity is reached, the bytes will be dropped from the beginning of the buffer.
|
|
33
|
+
|
|
34
|
+
@param capacity the capacity in bytes of the buffer.
|
|
35
|
+
@return a FBDataBuffer implementation.
|
|
36
|
+
*/
|
|
37
|
+
+ (nonnull id<FBAccumulatingBuffer>)accumulatingBufferWithCapacity:(size_t)capacity;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
A data buffer that is only mutated through consuming data.
|
|
41
|
+
|
|
42
|
+
@return a FBDataBuffer implementation.
|
|
43
|
+
*/
|
|
44
|
+
+ (nonnull id<FBAccumulatingBuffer>)accumulatingBufferForMutableData:(nonnull NSMutableData *)data;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
A data buffer that is appended to by consuming data and can be drained.
|
|
48
|
+
|
|
49
|
+
@return a FBConsumableBuffer implementation.
|
|
50
|
+
*/
|
|
51
|
+
+ (nonnull id<FBConsumableBuffer>)consumableBuffer;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
A data buffer that can forward and notify.
|
|
55
|
+
|
|
56
|
+
@return a FBNotifyingBuffer implementation.
|
|
57
|
+
*/
|
|
58
|
+
+ (nonnull id<FBNotifyingBuffer>)notifyingBuffer;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
A line buffer that is appended to by consuming data that will be automatically drained by forwarding to another consumer.
|
|
62
|
+
|
|
63
|
+
@param consumer the consumer to forward chunks to
|
|
64
|
+
@param queue the queue to forward on.
|
|
65
|
+
@param terminal the terminal separator.
|
|
66
|
+
@return a FBConsumableBuffer implementation.
|
|
67
|
+
*/
|
|
68
|
+
+ (nonnull id<FBNotifyingBuffer>)consumableBufferForwardingToConsumer:(nullable id<FBDataConsumer>)consumer onQueue:(nullable dispatch_queue_t)queue terminal:(nullable NSData *)terminal;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
NSData for a newline.
|
|
72
|
+
*/
|
|
73
|
+
+ (nonnull NSData *)newlineTerminal;
|
|
74
|
+
|
|
75
|
+
@end
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <FBControlCore/FBFuture.h>
|
|
11
|
+
|
|
12
|
+
// Protocols defined in Swift (FBDataConsumer.swift)
|
|
13
|
+
@protocol FBDataConsumer;
|
|
14
|
+
@protocol FBDispatchDataConsumer;
|
|
15
|
+
@protocol FBDataConsumerSync;
|
|
16
|
+
@protocol FBDataConsumerAsync;
|
|
17
|
+
@protocol FBDataConsumerLifecycle;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
Adapts a NSData consumer to a dispatch_data consumer to.
|
|
21
|
+
*/
|
|
22
|
+
@interface FBDataConsumerAdaptor : NSObject
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Adapts a NSData consumer to a dispatch_data consumer.
|
|
26
|
+
|
|
27
|
+
@param consumer the consumer to adapt.
|
|
28
|
+
@return a dispatch_data consumer.
|
|
29
|
+
*/
|
|
30
|
+
+ (nonnull id<FBDispatchDataConsumer>)dispatchDataConsumerForDataConsumer:(nonnull id<FBDataConsumer>)consumer;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
Adapts a NSData consumer to a dispatch_data consumer.
|
|
34
|
+
|
|
35
|
+
@param consumer the consumer to adapt.
|
|
36
|
+
@return a NSData consumer.
|
|
37
|
+
*/
|
|
38
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle>)dataConsumerForDispatchDataConsumer:(nonnull id<FBDispatchDataConsumer, FBDataConsumerLifecycle>)consumer;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Converts dispatch_data to NSData.
|
|
42
|
+
Note that this will copy data if the underlying dispatch data is non-contiguous.
|
|
43
|
+
|
|
44
|
+
@param dispatchData the data to adapt.
|
|
45
|
+
@return NSData from the dispatchData.
|
|
46
|
+
*/
|
|
47
|
+
+ (nonnull NSData *)adaptDispatchData:(nonnull dispatch_data_t)dispatchData;
|
|
48
|
+
|
|
49
|
+
@end
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
A consumer of data, passing output to a block.
|
|
53
|
+
*/
|
|
54
|
+
@interface FBBlockDataConsumer : NSObject
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
Creates a consumer that delivers data when available.
|
|
58
|
+
Data will be delivered synchronously.
|
|
59
|
+
|
|
60
|
+
@param consumer the block to call when new data is available
|
|
61
|
+
@return a new consumer.
|
|
62
|
+
*/
|
|
63
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle, FBDataConsumerSync>)synchronousDataConsumerWithBlock:(void (^_Nonnull)(NSData * _Nonnull))consumer;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
Creates a Consumer of lines from a block.
|
|
67
|
+
Lines will be delivered synchronously.
|
|
68
|
+
|
|
69
|
+
@param consumer the block to call when a line has been consumed.
|
|
70
|
+
@return a new consumer.
|
|
71
|
+
*/
|
|
72
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle, FBDataConsumerSync>)synchronousLineConsumerWithBlock:(void (^_Nonnull)(NSString * _Nonnull))consumer;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
Creates a consumer that delivers data when available.
|
|
76
|
+
Data will be delivered asynchronously to the provided queue.
|
|
77
|
+
|
|
78
|
+
@param queue the queue to consume on.
|
|
79
|
+
@param consumer the block to call when new data is available
|
|
80
|
+
@return a new consumer.
|
|
81
|
+
*/
|
|
82
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle, FBDataConsumerAsync>)asynchronousDataConsumerOnQueue:(nonnull dispatch_queue_t)queue consumer:(void (^_Nonnull)(NSData * _Nonnull))consumer;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
Creates a consumer that delivers data when available.
|
|
86
|
+
Data will be delivered asynchronously to a private queue.
|
|
87
|
+
|
|
88
|
+
@param consumer the block to call when a line has been consumed.
|
|
89
|
+
@return a new consumer.
|
|
90
|
+
*/
|
|
91
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle, FBDataConsumerAsync>)asynchronousDataConsumerWithBlock:(void (^_Nonnull)(NSData * _Nonnull))consumer;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
Creates a Consumer of lines from a block.
|
|
95
|
+
Lines will be delivered asynchronously to a private queue.
|
|
96
|
+
|
|
97
|
+
@param consumer the block to call when a line has been consumed.
|
|
98
|
+
@return a new consumer.
|
|
99
|
+
*/
|
|
100
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle>)asynchronousLineConsumerWithBlock:(void (^_Nonnull)(NSString * _Nonnull))consumer;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
Creates a Consumer of lines from a block.
|
|
104
|
+
Lines will be delivered asynchronously to the given queue.
|
|
105
|
+
|
|
106
|
+
@param queue the queue to call the consumer from.
|
|
107
|
+
@param consumer the block to call when a line has been consumed.
|
|
108
|
+
@return a new consumer.
|
|
109
|
+
*/
|
|
110
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle>)asynchronousLineConsumerWithQueue:(nonnull dispatch_queue_t)queue consumer:(void (^_Nonnull)(NSString * _Nonnull))consumer;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
Creates a Consumer of lines from a block.
|
|
114
|
+
Lines will be delivered as data asynchronously to the given queue.
|
|
115
|
+
|
|
116
|
+
@param queue the queue to call the consumer from.
|
|
117
|
+
@param consumer the block to call when a line has been consumed.
|
|
118
|
+
@return a new consumer.
|
|
119
|
+
*/
|
|
120
|
+
+ (nonnull id<FBDataConsumer, FBDataConsumerLifecycle>)asynchronousLineConsumerWithQueue:(nonnull dispatch_queue_t)queue dataConsumer:(void (^_Nonnull)(NSData * _Nonnull))consumer;
|
|
121
|
+
|
|
122
|
+
@end
|
|
123
|
+
|
|
124
|
+
@protocol FBControlCoreLogger;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
A consumer that logs received data to a logger.
|
|
128
|
+
*/
|
|
129
|
+
@interface FBLoggingDataConsumer : NSObject
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
The Designated Initializer
|
|
133
|
+
*/
|
|
134
|
+
+ (nonnull instancetype)consumerWithLogger:(nonnull id<FBControlCoreLogger>)logger;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
The wrapped logger.
|
|
138
|
+
*/
|
|
139
|
+
@property (nonnull, nonatomic, readonly, strong) id<FBControlCoreLogger> logger;
|
|
140
|
+
|
|
141
|
+
- (void)consumeData:(nonnull NSData *)data;
|
|
142
|
+
- (void)consumeEndOfFile;
|
|
143
|
+
|
|
144
|
+
@end
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
A Composite Consumer.
|
|
148
|
+
*/
|
|
149
|
+
@interface FBCompositeDataConsumer : NSObject
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
A Consumer of Consumers.
|
|
153
|
+
|
|
154
|
+
@param consumers the consumers to compose.
|
|
155
|
+
@return a new consumer.
|
|
156
|
+
*/
|
|
157
|
+
+ (nonnull instancetype)consumerWithConsumers:(nonnull NSArray<id<FBDataConsumer>> *)consumers;
|
|
158
|
+
|
|
159
|
+
- (void)consumeData:(nonnull NSData *)data;
|
|
160
|
+
- (void)consumeEndOfFile;
|
|
161
|
+
@property (nonnull, nonatomic, readonly, strong) FBFuture<NSNull *> *finishedConsuming;
|
|
162
|
+
|
|
163
|
+
@end
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
A consumer that does nothing with the data.
|
|
167
|
+
*/
|
|
168
|
+
@interface FBNullDataConsumer : NSObject
|
|
169
|
+
|
|
170
|
+
- (void)consumeData:(nonnull NSData *)data;
|
|
171
|
+
- (void)consumeEndOfFile;
|
|
172
|
+
|
|
173
|
+
@end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <FBControlCore/FBFuture.h>
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
An enumeration representing the existing file containers.
|
|
14
|
+
*/
|
|
15
|
+
typedef NSString *FBFileContainerKind NS_STRING_ENUM;
|
|
16
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindApplication;
|
|
17
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindAuxillary;
|
|
18
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindCrashes;
|
|
19
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindDiskImages;
|
|
20
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindGroup;
|
|
21
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindMDMProfiles;
|
|
22
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindMedia;
|
|
23
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindProvisioningProfiles;
|
|
24
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindRoot;
|
|
25
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindSpringboardIcons;
|
|
26
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindSymbols;
|
|
27
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindWallpaper;
|
|
28
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindXctest;
|
|
29
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindDylib;
|
|
30
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindDsym;
|
|
31
|
+
extern FBFileContainerKind _Nonnull const FBFileContainerKindFramework;
|
|
32
|
+
|
|
33
|
+
@protocol FBDataConsumer;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
Implementations of File Commands.
|
|
37
|
+
*/
|
|
38
|
+
@interface FBFileContainer : NSObject
|
|
39
|
+
|
|
40
|
+
+ (nonnull id)containedFileForBasePath:(nonnull NSString *)basePath;
|
|
41
|
+
+ (nonnull id)containedFileForPathMapping:(nonnull NSDictionary<NSString *, NSString *> *)pathMapping;
|
|
42
|
+
+ (nonnull id)fileContainerForBasePath:(nonnull NSString *)basePath;
|
|
43
|
+
+ (nonnull id)fileContainerForPathMapping:(nonnull NSDictionary<NSString *, NSString *> *)pathMapping;
|
|
44
|
+
+ (nonnull id)fileContainerForContainedFile:(nonnull id)containedFile;
|
|
45
|
+
|
|
46
|
+
@end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#import <FBControlCore/FBDataConsumer.h>
|
|
11
|
+
#import <FBControlCore/FBFuture.h>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
The File Reader States
|
|
15
|
+
*/
|
|
16
|
+
typedef NS_ENUM(NSUInteger, FBFileReaderState) {
|
|
17
|
+
FBFileReaderStateNotStarted = 0,
|
|
18
|
+
FBFileReaderStateReading = 1,
|
|
19
|
+
FBFileReaderStateFinishedReadingNormally = 2,
|
|
20
|
+
FBFileReaderStateFinishedReadingInError = 3,
|
|
21
|
+
FBFileReaderStateFinishedReadingByCancellation = ECANCELED,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// Protocol defined in Swift (FBFileReaderProtocol.swift)
|
|
25
|
+
@protocol FBFileReaderProtocol;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
Human-readable rendering of a FourCC (four-character code, such as a CoreVideo
|
|
14
|
+
pixel format). Returns the literal four ASCII characters when every byte is
|
|
15
|
+
printable ASCII (0x20–0x7e, i.e. excludes NUL, control bytes, DEL, and any
|
|
16
|
+
high-bit byte); otherwise falls back to an `0x`-prefixed 8-digit hex string so
|
|
17
|
+
the result is always safe to log.
|
|
18
|
+
|
|
19
|
+
This is a non-deprecated, drop-in replacement for `UTCreateStringForOSType`.
|
|
20
|
+
|
|
21
|
+
@note When working in Swift code, prefer the `OSType.fourCharCodeString`
|
|
22
|
+
computed property over this function. This C function exists solely so that
|
|
23
|
+
Objective-C callers can share the same logic.
|
|
24
|
+
|
|
25
|
+
@param code the FourCC / OSType to render.
|
|
26
|
+
@return a string representation that is always safe to log.
|
|
27
|
+
*/
|
|
28
|
+
NSString *FBStringFromFourCharCode(OSType code);
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|