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
<li>You cannot use toolchains bundled with Xcode to use the Swift SDK.</li>
168
168
<li>If you are using macOS, please follow the <ahref="https://www.swift.org/install/macos/package_installer/">official guide</a> to install the toolchain.</li>
169
169
</ul>
170
+
<p>Please ensure you have installed the Swift 6.0.3 Open Source toolchain.</p>
<tr><td>Open Source (macOS)</td><td><code>Apple Swift version 6.0.3 (swift-6.0.3-RELEASE)</code></td></tr>
211
209
<tr><td>Open Source (Others)</td><td><code>Swift version 6.0.3 (swift-6.0.3-RELEASE)</code></td></tr>
212
210
</tbody></table>
211
+
<h3><aclass="header" href="#unknown0-error-module-compiled-with-swift-603-cannot-be-imported-by-the-swift-xyz" id="unknown0-error-module-compiled-with-swift-603-cannot-be-imported-by-the-swift-xyz"><code><unknown>:0: error: module compiled with Swift 6.0.3 cannot be imported by the Swift x.y.z</code></a></h3>
212
+
<p>This error occurs when the Swift toolchain version you are using is different from the version of the Swift SDK you have installed.</p>
213
+
<p>To resolve this issue, you can either:</p>
214
+
<ol>
215
+
<li>Switch the Swift toolchain to the same version as the Swift SDK you have installed. Check the <ahref="https://www.swift.org/install/macos/package_installer/">official guide</a> for how to switch the toolchain.</li>
216
+
<li>Install the Swift SDK for the same version as the Swift toolchain you are using.
217
+
Use the following shell snippet to query compatible Swift SDK for your current toolchain version:</li>
<h3><aclass="header" href="#what-is-the-difference-between-the-swift-toolchain-and-the-swift-sdk" id="what-is-the-difference-between-the-swift-toolchain-and-the-swift-sdk">What is the difference between the Swift Toolchain and the Swift SDK?</a></h3>
214
227
<p>The Swift toolchain is a complete package that includes the Swift compiler, standard library, and other tools.</p>
215
228
<p>The Swift SDK includes a subset of the Swift toolchain that includes only the necessary components for cross-compilation and some supplementary resources.</p>
<li>You cannot use toolchains bundled with Xcode to use the Swift SDK.</li>
193
193
<li>If you are using macOS, please follow the <ahref="https://www.swift.org/install/macos/package_installer/">official guide</a> to install the toolchain.</li>
194
194
</ul>
195
+
<p>Please ensure you have installed the Swift 6.0.3 Open Source toolchain.</p>
<tr><td>Open Source (macOS)</td><td><code>Apple Swift version 6.0.3 (swift-6.0.3-RELEASE)</code></td></tr>
236
234
<tr><td>Open Source (Others)</td><td><code>Swift version 6.0.3 (swift-6.0.3-RELEASE)</code></td></tr>
237
235
</tbody></table>
236
+
<h3><aclass="header" href="#unknown0-error-module-compiled-with-swift-603-cannot-be-imported-by-the-swift-xyz" id="unknown0-error-module-compiled-with-swift-603-cannot-be-imported-by-the-swift-xyz"><code><unknown>:0: error: module compiled with Swift 6.0.3 cannot be imported by the Swift x.y.z</code></a></h3>
237
+
<p>This error occurs when the Swift toolchain version you are using is different from the version of the Swift SDK you have installed.</p>
238
+
<p>To resolve this issue, you can either:</p>
239
+
<ol>
240
+
<li>Switch the Swift toolchain to the same version as the Swift SDK you have installed. Check the <ahref="https://www.swift.org/install/macos/package_installer/">official guide</a> for how to switch the toolchain.</li>
241
+
<li>Install the Swift SDK for the same version as the Swift toolchain you are using.
242
+
Use the following shell snippet to query compatible Swift SDK for your current toolchain version:</li>
<h3><aclass="header" href="#what-is-the-difference-between-the-swift-toolchain-and-the-swift-sdk" id="what-is-the-difference-between-the-swift-toolchain-and-the-swift-sdk">What is the difference between the Swift Toolchain and the Swift SDK?</a></h3>
239
252
<p>The Swift toolchain is a complete package that includes the Swift compiler, standard library, and other tools.</p>
240
253
<p>The Swift SDK includes a subset of the Swift toolchain that includes only the necessary components for cross-compilation and some supplementary resources.</p>
0 commit comments