You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/HowToGuides/GettingStarted.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,7 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
222
222
- If you use an editor other than Xcode and/or you want somewhat faster builds,
223
223
go with Ninja.
224
224
- If you are comfortable with using Xcode and would prefer to use it,
225
-
go with Xcode.
225
+
go with Xcode. If you run into issues building with Xcode, you can alternatively [integrate a Ninja build into Xcode](#integrate-a-ninja-build-with-xcode).
226
226
There is also a third option, which is somewhat more involved:
227
227
[using both Ninja and Xcode](#using-both-ninja-and-xcode).
228
228
3. Build the toolchain with optimizations, debuginfo, and assertions and run
@@ -238,9 +238,11 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
@@ -267,7 +269,7 @@ In the following sections, for simplicity, we will assume that you are using a
267
269
unless explicitly mentioned otherwise. You will need to slightly tweak the paths
268
270
for other build configurations.
269
271
270
-
#### Using both Ninja and Xcode
272
+
### Using both Ninja and Xcode
271
273
272
274
Some contributors find it more convenient to use both Ninja and Xcode.
273
275
Typically this configuration consists of:
@@ -282,7 +284,8 @@ The additional flexibility comes with two issues: (1) consuming much more disk
282
284
space and (2) you need to maintain the two builds in sync, which needs extra
283
285
care when moving across branches.
284
286
285
-
It is even possible to integrate the Ninja build into Xcode. For details on how to set this up see [Using Ninja with Xcode in DevelopmentTips.md](/docs/DevelopmentTips.md#using-ninja-with-xcode).
287
+
### Integrate a Ninja build with Xcode
288
+
It is possible to integrate the Ninja build into Xcode. For details on how to set this up see [Using Ninja with Xcode in DevelopmentTips.md](/docs/DevelopmentTips.md#using-ninja-with-xcode).
286
289
287
290
### Troubleshooting build issues
288
291
@@ -305,16 +308,23 @@ It is even possible to integrate the Ninja build into Xcode. For details on how
305
308
In many situations, there are several errors, so scrolling further back
306
309
and looking at the first error may be more helpful than simply looking
307
310
at the last error.
308
-
- Check if others have encountered the same issue on the Swift forums or on
309
-
[Swift repository 'Issues' tab][Swift Issues].
310
-
- Create a new Swift forums thread in the Development category. Include
311
-
information about your configuration and the errors you are seeing.
311
+
- Check if others have encountered the same issue on the [Swift Forums](https://forums.swift.org/c/development/compiler) or on [Swift repository 'Issues' tab][Swift Issues]. Here is a list of threads that describe common issues:
312
+
* [Problems with `build-script` building compiler with `–xcode`](https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477)
313
+
* [Error building the compiler (even with ninja)](https://forums.swift.org/t/error-building-the-compiler-even-with-ninja/54834)
314
+
* [Build failure on Apple MacBook Pro with Apple M1 Chip](https://forums.swift.org/t/build-failure-on-apple-silicon-m1-mac-mini/45011)
315
+
* [CMake cannot compile a test program](https://forums.swift.org/t/build-failure-locally/55695)
316
+
* [Building Swift compiler from source fails when not using Ninja](https://forums.swift.org/t/building-swift-compiler-from-source-fails-when-not-using-ninja/54656)
317
+
* [ALL_BUILD Target failing at validation](https://forums.swift.org/t/help-building-swift-in-xcode-error/49728)
318
+
* [“gtest/gtest.h” not found while compiling the compiler](https://forums.swift.org/t/gtest-gtest-h-not-found-in-typeref-cpp-while-compiling-the-compiler/44399)
319
+
- If you still could not find a solution to your issue, feel free to create a new Swift Forums thread in the [Development/Compiler](https://forums.swift.org/c/development/compiler) category:
320
+
- Include information about your configuration and the errors you are seeing.
312
321
- You can [create a gist](https://gist.github.com) with the entire build
313
322
output and link it, while highlighting the most important part of the
314
323
build log in the post.
315
324
- Include the output of `utils/update-checkout --dump-hashes`.
0 commit comments