Skip to content

Commit d453eac

Browse files
committed
[Gardening] Apply Review Feedback
1 parent e927b55 commit d453eac

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/OptimizationTips.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ three different optimization levels:
3333

3434
In the Xcode UI, one can modify the current optimization level as follows:
3535

36-
For the whole project,
37-
Select project in `project and targets list`, then add `-Ounchecked` in `Other Swift Flags` under `Swift Compiler - Custom Flags`.
38-
39-
For a single target, process is the same except you select desired target in `project and targets list`.
40-
36+
In the Project Navigator, select the project icon to enter the Project Editor.
37+
In the project editor, select the icon under the "Project" header to enter
38+
the project settings editor. From there, an optimization setting can be applied
39+
to every target in the project by changing the "Optimization Level" field under
40+
the "Build Settings" header.
41+
42+
To apply a custom optimization level to a particular target, select that target
43+
under the "Targets" header in the Project Editor and override the
44+
"Optimization Level" field under its "Build Settings" header.
45+
46+
If a given optimization level is not available in the UI, its corresponding flag
47+
can be manually specified by selecting the ``Other...`` level in
48+
the "Optimization Level" dropdown.
4149

4250
Whole Module Optimizations (WMO)
4351
================================

0 commit comments

Comments
 (0)