Skip to content

Commit e7d2ba4

Browse files
authored
Added instructions for integration with Xcode projects (#3)
Added instructions for integration with Xcode projects, which is a couple steps more complex than normal framework/library inclusion requiring setting up Library Search Paths & Runpath Search Paths. This matches the resulting `ld` flags of `-L«toolchain-dir»/usr/lib` and `-Xlinker -rpath -Xlinker «toolchain-dir»/usr/lib` as is done in swift-index-store's own Package.swift.
1 parent c8df364 commit e7d2ba4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ let package = Package(
6060
)
6161
```
6262

63+
Xcode:
64+
65+
1. Add the swift-index-store as a Package Dependency to your project (via File ▸ Add Packages…).
66+
2. Added the “IndexStore” library to your target's Frameworks and Libraries.
67+
3. Add `$(TOOLCHAIN_DIR)/usr/lib` to your target's Runpath Search Paths (LD_RUNPATH_SEARCH_PATHS) build setting.
68+
4. Add `$(TOOLCHAIN_DIR)/usr/lib` to your target's Library Search Paths (LIBRARY_SEARCH_PATHS) build setting.
69+
6370
## How it works
6471

6572
During compilation, both `swiftc` and `clang` can generate a detailed

0 commit comments

Comments
 (0)