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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
Use this template as a starting point for any Swift 6 module that you want other people to include in their projects.
4
4
5
-
**STATUS: This template is ready and works in production code, compatible with Xcode version 16.3 (16E140)**
5
+
:white_check_mark:STATUS: This template is ready and works in production code. See [releases](https://github.com/fulldecent/swift6-module-template/releases) to confirm we support the latest Xcode version.
@@ -88,12 +89,9 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
88
89
### IV. Use the directory layout structure like Alamofire
89
90
90
91
1.*Move Example source code to a folder named "Sources"*
91
-
:information_source: The Alamofire project uses [the folder name "Source"](https://github.com/Alamofire/Alamofire/tree/master/Example/Source) but we choose "Sources" here to be consistent with [the default of Swift Package Manager](https://github.com/swiftlang/swift-package-manager/blob/451196234d81f82a147293105fd4467cdd69b6ac/Sources/Workspace/InitPackage.swift#L570C48-L570C50).
92
-
92
+
:information_source: The Alamofire project uses [the folder name "Source"](https://github.com/Alamofire/Alamofire/tree/master/Example/Source) but we choose "Sources" here to be consistent with [the default of Swift Package Manager](https://github.com/swiftlang/swift-package-manager/blob/e1183984b08c76480406e134a6ec116888cf2e67/Sources/Workspace/InitPackage.swift#L596).
93
93
1. Open the file Example.xcodeproj in Xcode (it's on your desktop, in the xxPROJECTxNAMExx > Example folder)
94
94
95
-
:information_source: You will see "Cannot preview in this file", but we resolve this in the step "Make your Example application depend on your module" below.
96
-
97
95
2. Show the Project navigator on the left (folder icon)
98
96
99
97
3. Use the Project navigator to select the "Example" folder (blue icon)
@@ -109,19 +107,20 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
### VI. Make your Example application depend on your module
110
+
:information_source: You will see "Module compiled with Swift 6.1.2 cannot be imported by the Swift 6.2 compiler", but we will resolve this in the step "make your example application depend on your module" below.
111
+
112
+
### VI. Make your example application depend on your module
113
113
114
114
1. Open Example.xcodeproj in Xcode
115
115
2. In Xcode, choose File > Add Package Dependencies...
116
116
1. Click "Add Local..."
117
117
2. Select the folder `xxPROJECTxNAMExx` on the desktop (don't double click it)
118
118
3. Click "Add Package"
119
119
4. In the choose package products, set the "add to target" to "Example", and click "Add Package"
### VII. Add additional project management files to the module
123
122
124
-
*These files represent best practices which every Swift module author should adopt for published code.*
123
+
*These files represent best practices which every open source Swift module author should adopt for published code.*
125
124
126
125
1. Use Terminal.app to add additional files to the project
127
126
@@ -159,6 +158,8 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
159
158
3. Choose Product > Run
160
159
:white_check_mark: You should see a big white king (♔) after a few moments. That means it worked!
161
160
161
+
:information_source: You may see a nag screen in your app about Apple Intelligence. This advertisement is installed by Apple and Apple prevents you from removing it.
162
+
162
163
4. *Compare with the distributed Swift 6 Module Template repository*
163
164
164
165
1. Use Terminal.app to clone the repository to your Developer folder
0 commit comments