Documentation
¶
Overview ¶
Package devicectl provides wrappers around xcrun devicectl for physical device management.
Index ¶
- func DeviceInfo(ctx context.Context, identifier string) (map[string]any, error)
- func InstallApp(ctx context.Context, identifier, appPath string) error
- func LaunchApp(ctx context.Context, identifier, bundleID string) error
- func RebootDevice(ctx context.Context, identifier string) error
- func TerminateApp(ctx context.Context, identifier, bundleID string) error
- func UninstallApp(ctx context.Context, identifier, bundleID string) error
- type Device
- type DeviceListResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceInfo ¶
DeviceInfo returns detailed information about a specific device.
func InstallApp ¶
InstallApp installs an application bundle on a physical device.
func RebootDevice ¶
RebootDevice reboots a physical device.
func TerminateApp ¶
TerminateApp terminates an application on a physical device.
Types ¶
type Device ¶
type Device struct {
Identifier string `json:"identifier"`
Name string `json:"name"`
DeviceType string `json:"deviceType"`
Platform string `json:"platform"`
OSVersion string `json:"osVersion"`
ConnectionType string `json:"connectionType"`
State string `json:"state"`
Extra map[string]any `json:"-"`
}
Device represents a physical iOS/macOS device.
type DeviceListResult ¶
type DeviceListResult struct {
Result struct {
Devices []struct {
Identifier string `json:"identifier"`
Name string `json:"deviceProperties.name"`
DeviceType string `json:"hardwareProperties.deviceType"`
Platform string `json:"hardwareProperties.platform"`
OSVersionNumber string `json:"deviceProperties.osVersionNumber"`
ConnectionProperties struct {
TransportType string `json:"transportType"`
} `json:"connectionProperties"`
} `json:"devices"`
} `json:"result"`
}
DeviceListResult is the JSON output from devicectl list devices.
Click to show internal directories.
Click to hide internal directories.