Remove the need for launch arguments when using ios.none configurations

This commit is contained in:
Leo Natan
2018-11-01 11:30:51 +02:00
parent 50e3e41b94
commit 5c8ee02e7e
6 changed files with 50 additions and 45 deletions
+2 -15
View File
@@ -13,19 +13,6 @@ title: Debugging in Xcode During Detox Tests
> NOTE: Apps should not be submitted to the App Store with the Detox framework linked. Follow this guide only to debug Detox issues in your project. Once finished, make sure to remove **Detox.framework** from your project.
### Add Launch Arguments
Under **Product** menu select **Scheme** -> **Edit Scheme** and select **Run** -> **Arguments** tab and add the following launch arguments to **Arguments Passed On Launch**:
```
-detoxServer
ws://localhost:8099
-detoxSessionId
<project_name>
```
> NOTE: Add each line as a separate line in Xcode.
### Add 'None' Configuration to Detox Section
Edit the Detox section in `package.json` to add the following configuration:
@@ -37,12 +24,12 @@ Edit the Detox section in `package.json` to add the following configuration:
"name": "iPhone 8 Plus",
"session": {
"server": "ws://localhost:8099",
"sessionId": "<project_name>"
"sessionId": "<your app's bundle identifier>"
}
}
```
> NOTE: This configuration will not handle simulator and application lifecycle, they will have to be provided manually (via running your application from Xcode).
> NOTE: This configuration will not handle simulator and application lifecycle, they will have to be performed manually (e.g. running your application from Xcode).
### Run Detox Server Manually