Skip to content

Commit 017c148

Browse files
author
ThibaultBee
committed
chore(docs): add swift dependency installation guide
1 parent 6849d88 commit 017c148

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/install_swift_dependency.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
# Installing a dependency containing swift code
3+
4+
In order for XCode to successfully build when one of your dependency contains swift code, you can create an empty swift file in your project. Name it however you want, and when XCode offers to create a bridging header, click yes.
5+
6+
## Illustrated Instructions
7+
8+
1) Select `New file...` from the menu
9+
10+
![New file](https://user-images.githubusercontent.com/6181446/118495815-db8b2600-b723-11eb-8fef-bb69e2cdf676.png)
11+
12+
2) Select `Swift File`
13+
14+
![Swift file](https://user-images.githubusercontent.com/6181446/118495821-dc23bc80-b723-11eb-8dc2-1d44827a33a4.png)
15+
16+
3) Name you file however you want this doesn't matter (here I named it "fix")
17+
18+
![File Name](https://user-images.githubusercontent.com/6181446/118496044-0f664b80-b724-11eb-9bad-23761dc8bea6.png)
19+
20+
4) You can but don't have to create a bridging header (if you don't know what this is, just press no)
21+
22+
![Bridging header](https://user-images.githubusercontent.com/6181446/118495825-dcbc5300-b723-11eb-9140-4bd5c1392c87.png)
23+
24+
## Example of errors that will be fixed
25+
26+
`Undefined symbol: __swift_FORCE_LOAD_$`
27+
28+
![XCode erros](https://user-images.githubusercontent.com/6181446/118483850-d1aef600-b716-11eb-9d2d-d91b05ee4d65.png)
29+
30+
31+
32+
33+

0 commit comments

Comments
 (0)