Skip to content

Commit aa11864

Browse files
authored
docs: add deprecation notice. (#121)
1 parent 1a1fcd4 commit aa11864

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

DEPRECATIONS.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Deprecations in AppleSimulatorUtils
2+
3+
As of January 2024, we've identified overlapping functionalities between **AppleSimulatorUtils** and **`xcrun simctl`** command in the latest **Command Line Tools for Xcode**.
4+
This has led to the deprecation of several commands in **AppleSimulatorUtils**.
5+
6+
For detailed usage of the **`xcrun simctl`** command, run `xcrun simctl --help`.
7+
8+
## Deprecated Commands
9+
10+
The commands listed below are now deprecated in **AppleSimulatorUtils**, and can be replaced with corresponding **`xcrun simctl`** commands:
11+
12+
### `--setPermissions` Options
13+
14+
The following `--setPermissions` options in **AppleSimulatorUtils** are deprecated and can be replaced with corresponding `xcrun simctl privacy` commands:
15+
16+
- `calendar`
17+
- `contacts`
18+
- `location`
19+
- `photos`
20+
- `medialibrary` _(Use `media-library` in `xcrun simctl privacy`)_
21+
- `microphone`
22+
- `motion`
23+
- `reminders`
24+
- `siri`
25+
26+
For detailed usage of the simctl privacy commands, run `xcrun simctl privacy --help`.
27+
28+
### `--setLocation` Command
29+
30+
The `--setLocation` command is deprecated. Use `xcrun simctl location` instead.
31+
32+
For detailed usage of the location command, run `xcrun simctl location --help`.
33+
34+
## Additional Notes
35+
36+
While most of the deprecated commands are still available and function in **AppleSimulatorUtils**,
37+
some may show regressions (especially in newer versions of iOS and Xcode).
38+
39+
If you encounter any issues,
40+
the recommended solution is to use **`xcrun simctl`** instead,
41+
as it is more up-to-date and maintained by Apple.
42+
43+
---
44+
45+
**We will continue to maintain AppleSimulatorUtils for non-overlapping functionalities only.**
46+

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# AppleSimulatorUtils
22
A collection of utils for Apple simulators.
33

4+
## Deprecation Notice
5+
6+
**AppleSimulatorUtils** remains an actively maintained project.
7+
However, we have deprecated certain functionalities that overlap with features provided by the **`xcrun simctl`** command in the latest **Command Line Tools for Xcode**.
8+
In addition to avoid redundancy, it is better to use the **official** tool provided by Apple.
9+
10+
For a comprehensive list of deprecated commands and their `xcrun simctl` alternatives, please refer to our [Deprecations Document](./DEPRECATIONS.md).
11+
12+
413
## Installing
514

615
Install [brew](https://brew.sh), then:

0 commit comments

Comments
 (0)