From e28658c574e3c828c728e7dfb735609aa6ceee0d Mon Sep 17 00:00:00 2001 From: Beehive Innovations Date: Thu, 3 Feb 2022 13:09:52 +0400 Subject: [PATCH] Updated SPM installation instructions Added note about static / dynamic --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92ad92533..8465542c0 100644 --- a/README.md +++ b/README.md @@ -397,6 +397,8 @@ GRDB can be installed as a framework, or a static library. The [Swift Package Manager](https://swift.org/package-manager/) automates the distribution of Swift code. To use GRDB with SPM, add a dependency to `https://github.com/groue/GRDB.swift.git` +> GRDB offers a `static` as well as `dynamic` library. Choose the default `GRDB` (static) library if you're not sure about the difference. Choose `GRDB-dynamic` if you are going to link it with multiple targets within your app and only wish to link to a shared, dynamic framework once. See [#How to link as dynamic](https://forums.swift.org/t/how-to-link-a-swift-package-as-dynamic/32062) +> > :point_up: **Note**: Linux is not currently supported. > > :warning: **Warning**: Due to an Xcode bug, you will get "No such module 'CSQLite'" errors when you want to embed the GRDB package in other targets than the main application (watch extensions, for example). UI and Unit testing targets are OK, though. See [#642](https://github.com/groue/GRDB.swift/issues/642#issuecomment-575994093) for more information. @@ -8407,4 +8409,4 @@ This chapter was renamed to [Embedding SQL in Query Interface Requests]. [SQL literal]: Documentation/SQLInterpolation.md#sql-literal [Identifiable]: https://developer.apple.com/documentation/swift/identifiable [Query Interface Organization]: Documentation/QueryInterfaceOrganization.md -[Database Configuration]: #database-configuration \ No newline at end of file +[Database Configuration]: #database-configuration