* Website: initial commit. Clean install of Docusaurus website, following the instructions from https://docusaurus.io/docs/installation. * Website: update docusaurus configurations. * Website: remove blog section. * Website: replace docusaurus logos with Detox logos. * Website: use Detox docs. * Website: add content and change style. * website.yml: add github action for website-deployment. * Docs: fix links. * Remove redundant label fields. * Website: remove redundant markdown page. * website/README.md: remove redundant file. * website.yml: increase node version. * fix: base url issue * Website: replace icons. Co-authored-by: Yaroslav Serhieiev <[email protected]>
1.8 KiB
id, slug, title, sidebar_label
| id | slug | title | sidebar_label |
|---|---|---|---|
| ios | introduction/ios | Detox for iOS | Detox for iOS |
Detox for iOS
1. Preliminary
Run through the basic steps of the Getting Started guide, such as the environment and tools setup.
2. Apply Detox Configuration
Whether you've selected to apply the configuration in a .detoxrc.json or bundle it into your project's package.json (under the detox section), this is what the configuration should roughly look like for iOS:
{
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 12 Pro Max"
}
}
},
"apps": {
"ios.release": {
"type": "ios.app",
"binaryPath": <path to .app bundle>,
"build": <xcodebuild command>
}
},
"configurations": {
"ios.sim.release": {
"device": "simulator",
"app": "ios.release"
}
}
}
For a comprehensive explanation of Detox configuration, see our dedicated API-reference guide.
In the above configuration example, make sure to provide the correct information for your project/app. Under the key "binaryPath", you should provide the path of the .app bundle to use. Normally, this is the path where the "build” command would output this bundle. Under the key "build", specify the xcodebuild command for your project.
Also make sure the simulator model specified under the key device.type (e.g. iPhone 12 Pro Max above) is actually available on your machine (it was installed by Xcode). Check this by typing applesimutils --list in Terminal to display all available simulators.
For a complete, working example, refer to the Detox example project configuration.