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: doc/user_guide/instructions_to_run_generated_code.md
+61-91Lines changed: 61 additions & 91 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1770,132 +1770,102 @@ cargo run
1770
1770
- For more information, refer to the [Actix Web Client documentation](https://docs.rs/awc/).
1771
1771
1772
1772
## Swift (URLSession)
1773
+
Here are the detailed instructions for running the generated API Dash code in **Swift (using `URLSession`)** for macOS and Linux:
1774
+
### 1. Set Up the Environment
1773
1775
1774
-
### Set Up the Environment
1775
-
#### MacBook (macOS)
1776
+
#### macOS
1776
1777
1777
-
Verify Swift :
1778
-
```
1778
+
Verify Swift is installed:
1779
+
```bash
1779
1780
swift --version
1780
1781
```
1781
1782
1782
-
1783
-
#### Linux(Multipartformdata is not supported)
1784
-
1785
-
Download Swift for Linux (e.g., Ubuntu) from Swift.org.
1786
-
1787
-
```
1788
-
tar xzf filename
1789
-
export PATH=$PWD/filename/usr/bin:$PATH
1790
-
1791
-
```
1792
-
Verify:
1793
-
```
1794
-
swift --version
1783
+
If Swift is not installed, download and install Xcode from the [Mac App Store](https://apps.apple.com/us/app/xcode/id497799835) or install the Command Line Tools:
1784
+
```bash
1785
+
xcode-select --install
1795
1786
```
1796
1787
1788
+
#### Linux
1797
1789
1798
-
1799
-
1800
-
1801
-
Install Dependencies:
1790
+
1. Download the Swift toolchain for your Linux distribution from [Swift.org](https://swift.org/download/).
1791
+
2. Extract the archive (replace `swift-x.x.x-RELEASE-ubuntu22.04` with your downloaded filename):
0 commit comments