Skip to content

Commit 189c921

Browse files
committed
Content for Integration in Xcode
1 parent 48dc9c4 commit 189c921

File tree

1 file changed

+23
-0
lines changed
  • Documentation.app/Contents/MacOS/Quick start.playground/Pages/Integration in Xcode.xcplaygroundpage

1 file changed

+23
-0
lines changed

Documentation.app/Contents/MacOS/Quick start.playground/Pages/Integration in Xcode.xcplaygroundpage/Contents.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,27 @@
77
/*:
88
# Integration in Xcode
99

10+
Bow OpenAPI can be integrated in Xcode easily to regenerate your network client whenever the specification changes. Assuming you have already installed Bow OpenAPI in your computer, you can follow these steps.
11+
12+
## Add the specification file
13+
14+
Add the OpenAPI/Swagger specification file to the root of your project, as depicted in the image.
15+
16+
![](/assets/spec-file.png)
17+
18+
## Create an Aggregate
19+
20+
Add a new target to your project and select Aggregate, giving it the name you prefer.
21+
22+
![](/assets/aggregate.png)
23+
24+
## Run script
25+
26+
Select your recently created Aggregate and go to its Build Phases tab. Add a New Run Script Phase. There, you can invoke the Bow OpenAPI command, passing the values you need for your project.
27+
28+
![](/assets/build-phase.png)
29+
30+
## Build
31+
32+
From now on, if you run the scheme corresponding to this Aggregate, it will regenerate the network client based on the specification file. Drag the folder containing the generated code and drop it onto your project, and Swift Package Manager will start fetching your dependencies.
1033
*/

0 commit comments

Comments
 (0)