Skip to content

Commit 37b4a30

Browse files
committed
Update GtkBackend docs with Windows vcpkg troubleshooting steps
1 parent 28c5082 commit 37b4a30

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Sources/SwiftCrossUI/SwiftCrossUI.docc/GtkBackend.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ Figure 8: *install the dependencies listed in your package manifest*
108108

109109
> Warning: Replace the triplet with `arm64-windows` if you're on ARM64
110110
111+
#### Troubleshooting vcpkg
112+
113+
If vcpkg fails to build a package with an error along the lines of `ninja: error: manifest 'build.ninja' still dirty after 100 tries`, then some of your vcpkg installation may have been installed in the future according to Windows due to your VM's timezone being set incorrectly. This can be resolved by running the following commands in Git Bash;
114+
115+
```
116+
cd C:\vcpkg
117+
find . -type f -exec touch {} +
118+
```
119+
Figure 9: *fix vcpkg file modified times*
120+
121+
If you have a fix that doesn't require Git Bash, feel free to [open an issue](https://github.com/stackotter/swift-cross-ui/issues/new/choose) or pull request with your fix.
122+
123+
If you face a different issue, please open an issue or pull request to update this troubleshooting section.
124+
111125
## Usage
112126

113127
```swift
@@ -129,7 +143,7 @@ let package = Package(
129143
...
130144
)
131145
```
132-
Figure 9: *adding `GtkBackend` to an executable target*
146+
Figure 10: *adding `GtkBackend` to an executable target*
133147

134148
```swift
135149
import SwiftCrossUI
@@ -156,4 +170,4 @@ struct YourApp: App {
156170
}
157171
}
158172
```
159-
Figure 10: *using `GtkBackend`*
173+
Figure 11: *using `GtkBackend`*

0 commit comments

Comments
 (0)