skipstone sees no sources when .build files carry the hidden flag (project under iCloud-synced ~/Documents)
Summary
When a Skip project lives under ~/Documents with iCloud "Desktop & Documents" enabled, the files SwiftPM creates in .build carry the BSD hidden flag (UF_HIDDEN). This includes the dependency sources in .build/checkouts. The skipstone plugin then seems to see none of those sources. It writes an empty codebase and no *_Bridge.swift, and the build later fails because a bridge file doesn't exist.
Environment
- Skip 1.9.11, native (Fuse) app, Swift 6.3.3 Android SDK
- Project at
~/Documents/GIT-APPLE/<project>/app, iCloud Desktop & Documents on
Observed
$ find app/.build -flags +hidden | wc -l
5004
$ stat -f "%Sf" app/.build/checkouts/skip-unit/Sources/SkipUnit/XCTest.swift
hidden
$ cat app/.build/plugins/outputs/skip-unit/SkipUnit/destination/skipstone/SkipUnit.skipcode.json
{"a":[],"e":[],"f":[],"m":"SkipUnit","stable":[],"t":[],"v":[]}
Only the *_Support.swift files are copied into SkipBridgeGenerated/. skip android test or skip export then fails with:
error: error opening input file '.../skip-unit/SkipUnit/destination/skipstone/SkipBridgeGenerated/XCTest_Bridge.swift' (No such file or directory)
Controls
- A fresh
skip init --native-appproject created outside iCloud (under/private/tmp) has no hidden files, andskip export --debug --no-iosproduces an APK on the same machine. chflags -R nohidden app/.build, then moving.build/pluginsaside so the plugin runs again, generates the bridges (XCTest_Bridge.swiftand so on), and the build succeeds. On an existing.build, clearing the flag alone isn't enough: the plugin considers its output unchanged.
Suggestion
Don't skip hidden files when the plugin collects a target's sources (for example, drop .skipsHiddenFiles if it's used), or warn when a target yields an empty codebase while SwiftPM passed it source files.