Skip to content

Commit

Permalink
remove all mentions of idb
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 23, 2024
1 parent 8725084 commit a3b65f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import kotlin.system.exitProcess
object MaestroSessionManager {
private const val defaultHost = "localhost"
private const val defaultXctestHost = "[::1]"
private const val defaultIdbPort = 10882
private const val defaultXcTestPort = 22087

private val executor = Executors.newScheduledThreadPool(1)
Expand Down Expand Up @@ -217,20 +216,6 @@ object MaestroSessionManager {
}
}

private fun isIOS(host: String?, port: Int?): Boolean {
return try {
val channel = ManagedChannelBuilder.forAddress(host ?: defaultHost, port ?: defaultIdbPort)
.usePlaintext()
.build()

channel.shutdownNow()

true
} catch (_: Exception) {
false
}
}

private fun pickAndroidDevice(
host: String?,
port: Int?,
Expand Down
22 changes: 6 additions & 16 deletions maestro-ios/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
# iOS Device Config

A wrapper around idb to communicate with iOS devices.
A wrapper around `simctl` and XCTest to communicate with iOS devices.

## Prerequisites

### idb
To test on iOS devices you need to install [Facebook's idb tool](https://fbidb.io/).

### Xcode
Install Xcode 13 (command line tools are not enough, install the full IDE).

Install the latest Xcode (Command Line Tools are not enough, install the full IDE).

### IntelliJ setup
If you are working with this module, update your IntelliJ config (Help -> Edit Custom Properties) by including the following lines:

If you are working with this subproject, update your IntelliJ config (Help -> Edit Custom Properties) by including the following lines:

```
# Needed for working with idb.proto definition
idea.max.intellisense.filesize=4000
```

Restart the IDE

## Testing on iOS devices

1. List the devices with `idb_companion --list 1`
2. Pick a simulator from the list and note its UDID
3. Launch the simulator with `idb_companion --boot {udid}`
4. Connect to the simulator with `idb_companion --udid {udid}`

You are good to go!
Then restart the IDE.

0 comments on commit a3b65f1

Please sign in to comment.