Skip to content

Commit

Permalink
Add FAQ entry for missing external dependency error
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 9, 2024
1 parent 3e73346 commit 207d8d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/getting-started/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ If you encounter this error, please make sure that:
- You are using the correct target triple:
- `--triple wasm32-unknown-wasi --static-swift-stdlib` if you installed as a *toolchain*
- `--swift-sdk wasm32-unknown-wasi` if you installed as a *Swift SDK*

## `error: missing external dependency '.../usr/lib/swift/wasi/static-executable-args.lnk'

You may encounter this error while building with Swift SDK for WebAssembly and `swiftc` driver command. Unfortunately, Swift SDK does not support building with `swiftc` command yet, so you need to use `swift build` Swift Package Manager command instead.

e.g. `swift build --swift-sdk <SDK name>`

See also: [Compile a SwiftPM package to WebAssembly](./swift-package.md)

0 comments on commit 207d8d8

Please sign in to comment.