You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/PackageManagerDocs/Documentation.docc/ExploreDependencies.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
You define constraints for dependencies when you add them to your package, and those constraints can not always be met.
8
8
9
9
<!-- link to CLI docs for swift package resolve -->
10
-
Prior to running a build or test, or when you run `swift package resolve`, the package manager walks through the dependencies in your package, and all their dependencies recusively, to build a complete list.
10
+
Prior to running a build or test, or when you run `swift package resolve`, the package manager walks through the dependencies in your package, and all their dependencies recursively, to build a complete list.
11
11
It then attempts to choose a version of each dependency that fits within the constraints of your package, and any constraints provided by your dependencies.
12
12
13
13
If all the dependencies are available and resolved, the versions are recorded locally in the file `Package.resolved`.
Copy file name to clipboardExpand all lines: Sources/PackageManagerDocs/Documentation.docc/IntroducingPackages.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,15 @@ The manifest file, or package manifest, defines the package's name and its conte
10
10
Each package declares `Products`, a list of what the package produces.
11
11
Types of products include libraries, executables, and plugins:
12
12
13
-
- A library defines a module that can be imported by other code.
13
+
- A library defines one or more modules that can be imported by other code.
14
14
- An executable is a program that can be run by the operating system.
15
15
- A plugin is executable code that the Swift Package Manager may use to provide additional commands or build capabilities.
16
16
17
-
The package can also declare `Dependencies`, most frequently other Swift packages that provide modules you use.
17
+
The package can also declare `Dependencies`, that can include other Swift packages that provide modules you use.
18
18
Dependencies can also provide macros, plugins, or reference system or binary (non-source) dependencies.
19
19
20
20
Each product is made up of one or more `Targets`, the basic building block of a Swift package.
21
-
Each target specifies an output, may declare one or more dependencies on other targets within the same package and on products vended by the package’s dependencies.
21
+
Each target specifies an module, may declare one or more dependencies on other targets within the same package and on products vended by the package’s dependencies.
22
22
A target may define a library, a test suite, an executable, an macro, a binary dependency, and so on.
23
23
24
24
### About Modules
@@ -28,7 +28,7 @@ A module specifies a namespace and enforces access controls on which parts of th
28
28
Each target you define in a Swift package is a module.
29
29
30
30
When you expose a library from a package, you expose the public API from your targets that make up that library for other packages to use.
31
-
When you import a library in Swift, you're importing a module to use from your code, regardless of what language was used to create that module.
31
+
When you import a library in Swift, you're importing the modules that make up that library to use from your code, regardless of what language was used to create that module.
32
32
A Swift package can also host C, C++, or Objective-C code as modules.
33
33
Like Swift, these are also units of code distribution, but unlike Swift you expose the API that by hand-authoring a module-defining file (`module.modulemap`) that references a header or collection of headers with the API to expose.
0 commit comments