FBSimulatorControl/Management/FBSimulator.h (29 lines of code) (raw):
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#import <FBControlCore/FBControlCore.h>
#import <FBSimulatorControl/FBSimulatorAccessibilityCommands.h>
#import <FBSimulatorControl/FBSimulatorKeychainCommands.h>
#import <FBSimulatorControl/FBSimulatorLaunchCtlCommands.h>
#import <FBSimulatorControl/FBSimulatorLifecycleCommands.h>
#import <FBSimulatorControl/FBSimulatorMediaCommands.h>
#import <FBSimulatorControl/FBSimulatorMemoryCommands.h>
#import <FBSimulatorControl/FBSimulatorSettingsCommands.h>
#import <FBSimulatorControl/FBSimulatorNotificationCommands.h>
NS_ASSUME_NONNULL_BEGIN
@protocol FBControlCoreLogger;
@class FBAppleSimctlCommandExecutor;
@class FBControlCoreLogger;
@class FBSimulatorConfiguration;
@class FBSimulatorSet;
@class SimDevice;
/**
An implementation of FBiOSTarget for iOS Simulators.
*/
@interface FBSimulator : NSObject <FBiOSTarget, FBAccessibilityCommands, FBMemoryCommands, FBFileCommands, FBLocationCommands, FBNotificationCommands, FBProcessSpawnCommands, FBSimulatorKeychainCommands, FBSimulatorSettingsCommands, FBSimulatorLifecycleCommands, FBSimulatorLaunchCtlCommands, FBSimulatorMediaCommands, FBXCTestExtendedCommands, FBDapServerCommand>
#pragma mark Properties
/**
The Underlying SimDevice.
*/
@property (nonatomic, strong, readonly, nonnull) SimDevice *device;
/**
The Simulator Set that the Simulator belongs to.
*/
@property (nonatomic, weak, readonly, nullable) FBSimulatorSet *set;
/**
The Product Family of the Simulator.
*/
@property (nonatomic, assign, readonly) FBControlCoreProductFamily productFamily;
/**
A string representation of the Simulator State.
*/
@property (nonatomic, copy, readonly, nonnull) FBiOSTargetStateString stateString;
/**
The Directory that Contains the Simulator's Data
*/
@property (nonatomic, copy, readonly, nullable) NSString *dataDirectory;
/**
The FBSimulatorConfiguration representing this Simulator.
*/
@property (nonatomic, copy, readonly, nullable) FBSimulatorConfiguration *configuration;
/**
A command executor for simctl
*/
@property (nonatomic, strong, readonly) FBAppleSimctlCommandExecutor *simctlExecutor;
/**
The directory path of the expected location of the CoreSimulator logs directory.
*/
@property (nonatomic, copy, readonly) NSString *coreSimulatorLogsDirectory;
@end
NS_ASSUME_NONNULL_END