Skip to content

Commit 6465e7f

Browse files
committed
Update for Xcode 26.0.1
1 parent bb6a7ae commit 6465e7f

File tree

4 files changed

+143
-120
lines changed

4 files changed

+143
-120
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Use this template as a starting point for any Swift 6 module that you want other people to include in their projects.
44

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.
66

7-
![Swift 5 Module directory layout](https://github.com/fulldecent/swift5-module-template/assets/382183/1a7965f0-af84-4d00-9bb6-97db76e6e715)
7+
![Swift 6 directory layout](https://github.com/fulldecent/swift5-module-template/assets/382183/1a7965f0-af84-4d00-9bb6-97db76e6e715)
88

99
## Features
1010

Recipe.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ During the steps of this recipe we enter specific values where needed. These are
3333

3434
Complete all these instructions on the same calendar day.
3535

36-
Use Xcode version 16.4 (16F6). *This is the latest publicly released or Gold Master version.*
36+
Use Xcode version 26.0.1 (17A400). *This is the latest publicly released or Gold Master version.*
3737

3838
A previous version of this recipe is also demonstrated in a YouTube flyover at <https://youtu.be/ksYXtNn8lhE> (15 minutes).
3939

@@ -55,6 +55,7 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
5555
cd ~/Desktop/xxPROJECTxNAMExx/Sources/xxPROJECTxNAMExx/
5656
curl 'https://raw.githubusercontent.com/fulldecent/swift6-module-template/main/xxPROJECTxNAMExx/Sources/xxPROJECTxNAMExx/xxPROJECTxNAMExx.swift' -o xxPROJECTxNAMExx.swift
5757
curl 'https://raw.githubusercontent.com/fulldecent/swift6-module-template/main/xxPROJECTxNAMExx/Sources/xxPROJECTxNAMExx/White%20King.swift' -o White\ King.swift
58+
curl 'https://raw.githubusercontent.com/fulldecent/swift6-module-template/refs/heads/main/xxPROJECTxNAMExx/Tests/xxPROJECTxNAMExxTests/xxPROJECTxNAMExxTests.swift' -o ../../Tests/xxPROJECTxNAMExxTests/xxPROJECTxNAMExxTests.swift
5859
```
5960

6061
2. Quit Xcode
@@ -88,12 +89,9 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
8889
### IV. Use the directory layout structure like Alamofire
8990

9091
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).
9393
1. Open the file Example.xcodeproj in Xcode (it's on your desktop, in the xxPROJECTxNAMExx > Example folder)
9494

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-
9795
2. Show the Project navigator on the left (folder icon)
9896

9997
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 <
109107
curl 'https://raw.githubusercontent.com/fulldecent/swift6-module-template/main/xxPROJECTxNAMExx/Example/Sources/ContentView.swift' -o ContentView.swift
110108
```
111109

112-
### 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
113113

114114
1. Open Example.xcodeproj in Xcode
115115
2. In Xcode, choose File > Add Package Dependencies...
116116
1. Click "Add Local..."
117117
2. Select the folder `xxPROJECTxNAMExx` on the desktop (don't double click it)
118118
3. Click "Add Package"
119119
4. In the choose package products, set the "add to target" to "Example", and click "Add Package"
120-
3. In Xcode, choose File > Packages > Reset Package Caches
121120

122121
### VII. Add additional project management files to the module
123122

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.*
125124

126125
1. Use Terminal.app to add additional files to the project
127126

@@ -159,6 +158,8 @@ A previous version of this recipe is also demonstrated in a YouTube flyover at <
159158
3. Choose Product > Run
160159
:white_check_mark: You should see a big white king (♔) after a few moments. That means it worked!
161160

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+
162163
4. *Compare with the distributed Swift 6 Module Template repository*
163164

164165
1. Use Terminal.app to clone the repository to your Developer folder

0 commit comments

Comments
 (0)