Skip to content

Commit efddc8e

Browse files
authored
Update README.md
1 parent 0b36470 commit efddc8e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,24 @@ the following command with root privileges:
121121
sudo xcode-select -s /Applications/Xcode\ 13.2.1.app/Contents/Developer/
122122
```
123123

124+
#### Updating Swift files in Xcode project
125+
126+
To make sure the correct bindings files are referenced in the project, open `./xcode/LDKFramework/LDK.xcodeproj`.
127+
128+
In the sidebar, navigate to the `LDK/bindings` group, and delete it by removing references.
129+
130+
<img width="417" alt="Screen Shot 2022-07-12 at 2 36 52 PM" src="https://user-images.githubusercontent.com/927534/178599884-36737de9-ae57-4d13-9617-5c12af2a7d5e.png">
131+
132+
<img width="820" alt="Screen Shot 2022-07-12 at 2 38 31 PM" src="https://user-images.githubusercontent.com/927534/178600008-9baa0d92-7c3f-499d-88b8-c86b19ab057f.png">
133+
134+
Then, open a Finder window, and drag the `bindings` folder (`./ci/LDKSwift/Sources/LDKSwift/bindings`) into the same location in Xcode that you just deleted.
135+
136+
<img width="1110" alt="Screen Shot 2022-07-12 at 2 45 27 PM" src="https://user-images.githubusercontent.com/927534/178600978-9221e3e1-d227-450e-8937-dd2ad486975e.png">
137+
138+
Finally, make sure you leave the "Copy items if needed" box unchecked, and pick at least `LightningDevKit` as a target to add the references to. Depending on what you intend to do later on, it's easiest to simply add it to all the targets.
139+
140+
<img width="1313" alt="Screen Shot 2022-07-12 at 2 44 55 PM" src="https://user-images.githubusercontent.com/927534/178601275-7688b088-8349-4dcb-ac1b-a56c2dffdaa2.png">
141+
124142
### Building requisite binaries
125143

126144
Navigate (`cd`) to the `./src/scripts` folder, and run the following Python script:

0 commit comments

Comments
 (0)