Skip to content

Commit

Permalink
ios docs: Suggest clearing the build folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bobbe committed Apr 10, 2020
1 parent 24f50dd commit 75f4946
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/howto/build-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,3 +505,9 @@ Optionally, reset iOS simulator:
```
iOS Menu > Simulator > Reset Content and Settings…
```

If you get other iOS build failures and you haven't changed anything
in the `ios` folder yourself, and you're on the latest version of
Xcode, there might be residue from a previous build interfering in
this one. So, try cleaning the build folder, following the
instructions at [iOS tips](ios-tips.md#clearing-the-build-folder)
15 changes: 15 additions & 0 deletions docs/howto/ios-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,18 @@ unstaged. Later, you can always [squash that commit with other
commits][fixing-commits], if appropriate.

[fixing-commits]: https://zulip.readthedocs.io/en/latest/git/fixing-commits.html

## Clearing the build folder

If you get build failures on iOS and you haven't changed anything in
the `ios` folder yourself, and you're on the latest version of Xcode,
there might be residue from a previous build interfering with this
one. So, try cleaning the build folder with `rm -rf`. A different
folder is used for command-line builds and builds through Xcode.
- If building from the command line with `react-native run-ios`, run
`rm -rf ios/build`.
- If building in Xcode, the build folder is at a path like
`~/Library/Developer/Xcode/DerivedData/ZulipMobile-diuocloqwafvdpeozujwphdrhalf`
(the hash at the end will be different) by default, but if it's not
there, you can find it in Xcode at File > Workspace Settings > Build
Location.

0 comments on commit 75f4946

Please sign in to comment.