File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Sources/ScipioKit/Producer Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ struct FrameworkProducer {
85
85
)
86
86
}
87
87
88
+ let allTargets = targetGraph. allNodes. map ( \. value)
89
+
88
90
let pinsStore = try descriptionPackage. workspace. pinsStore. load ( )
89
91
let cacheSystem = CacheSystem (
90
92
pinsStore: pinsStore,
@@ -132,7 +134,7 @@ struct FrameworkProducer {
132
134
133
135
if shouldGenerateVersionFile {
134
136
// Versionfiles should be generate for all targets
135
- for target in builtTargets {
137
+ for target in allTargets {
136
138
await generateVersionFile ( for: target, using: cacheSystem)
137
139
}
138
140
}
Original file line number Diff line number Diff line change @@ -353,8 +353,7 @@ final class RunnerTests: XCTestCase {
353
353
" The framework should be cached to the cache storage "
354
354
)
355
355
356
- let outputFrameworkPath = frameworkOutputDir. appendingPathComponent ( " ScipioTesting.xcframework " )
357
- try self . fileManager. removeItem ( atPath: outputFrameworkPath. path)
356
+ try self . fileManager. removeItem ( atPath: frameworkOutputDir. path)
358
357
359
358
// Fetch from local storage
360
359
do {
@@ -364,10 +363,17 @@ final class RunnerTests: XCTestCase {
364
363
XCTFail ( " Build should be succeeded. " )
365
364
}
366
365
366
+ let outputFrameworkPath = frameworkOutputDir. appendingPathComponent ( " ScipioTesting.xcframework " )
367
+ let outputVersionFile = frameworkOutputDir. appendingPathComponent ( " .ScipioTesting.version " )
368
+
367
369
XCTAssertTrue (
368
370
fileManager. fileExists ( atPath: outputFrameworkPath. path) ,
369
371
" The framework should be restored from the cache storage "
370
372
)
373
+ XCTAssertTrue (
374
+ fileManager. fileExists ( atPath: outputVersionFile. path) ,
375
+ " The version file should exist when restored "
376
+ )
371
377
372
378
try fileManager. removeItem ( at: storageDir)
373
379
}
You can’t perform that action at this time.
0 commit comments