@@ -386,15 +386,16 @@ several more steps are necessary to set up this environment:
386
386
387
387
* Create an empty Xcode project in the workspace, using the
388
388
_External Build System_ template.
389
- * For a Ninja target that you want to build (e.g. `swift-frontend`), add a
390
- target to the empty project, using the _External Build System_ template.
389
+ * Add a target to the empty project, using the _External Build System_ template,
390
+ and name it after the Ninja target that you want to build (e.g. `swift-frontend`
391
+ is the compiler).
391
392
* In the _Info_ pane of the target settings, set
392
393
* _Build Tool_ to the absolute path of the `ninja` executable (the output of
393
394
`which ninja` on the command line)
394
- * _Arguments_ to the Ninja target name (e.g. `swift-frontend`)
395
- * _Directory_ to the absolute path of the directory where the Ninja target
396
- lives. For Swift targets ( the compiler, standard library, runtime, and
397
- related tooling), this is the `build/Ninja-*/swift-macosx-*` directory.
395
+ * _Arguments_ to the Ninja target (e.g. `bin/ swift-frontend`)
396
+ * _Directory_ to the absolute path of the build directory where the Ninja
397
+ target lives. For Swift targets such as the compiler or standard library,
398
+ this is the `build/Ninja-*/swift-macosx-*` directory.
398
399
* Add a scheme for the target. In the drop-down menu, be careful not to mistake
399
400
your target for a similar one that belongs to a generated Xcode project.
400
401
* > **Note**
@@ -406,7 +407,7 @@ several more steps are necessary to set up this environment:
406
407
the appropriate `bin` directory (e.g. `build/Ninja-*/swift-macosx-*/bin/swift-frontend`).
407
408
* In the _Arguments_ pane, add the command line arguments that you want to
408
409
pass to the executable on launch (e.g. `path/to/file.swift -typecheck` for
409
- `swift-frontend`).
410
+ `bin/ swift-frontend`).
410
411
* You can optionally set the working directory for debugging in the
411
412
_Options_ pane.
412
413
* Configure as many more target-scheme pairs as you need.
0 commit comments