Update README.md

This commit is contained in:
Helge Heß 2023-06-15 20:36:25 +02:00 committed by GitHub
parent fefe2688b2
commit b382659c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,7 @@ Swift package documentation:
[NorthwindSQLite.swift](https://lighter-swift.github.io/NorthwindSQLite.swift/documentation/northwind/).
**Note**:
Due to an Xcode 14 bug the Northwind module cannot yet be directly added to an
Due to an Xcode 14/15 bug the Northwind module cannot yet be directly added to an
Xcode project as a package dependency.
A ["Local Package"](https://developer.apple.com/documentation/xcode/organizing-your-code-with-local-packages)
needs to be setup.
@ -24,6 +24,14 @@ It works fine in regular SPM contexts.
### Package.swift
Steps to workaround Xcode 15beta issues:
- in your Xcode project, select the project in the sidebar
- in the Xcode menu, use the "File" / "New Package …" menu
- select the "Library" template
- in the next dialog use "Add to project" (it defaults to none), and add it to the Xcode projec
- make sure to link the helper package to the target (e.g. via "Frameworks, Libs and Embedded Content")
This is generally a good way to maintain dependencies in Xcode.
Example of a "LocalHelper" `Package.swift` that imports Northwind
for Xcode use:
```swift