8
8
@testable import PADOutputGenerator
9
9
@testable import PADProjectBuilder
10
10
@testable import PADSwiftInterfaceDiff
11
+ @testable import PADLogging
12
+ import ShellModule
11
13
import XCTest
12
14
13
15
class ReferencePackageTests : XCTestCase {
@@ -24,19 +26,22 @@ class ReferencePackageTests: XCTestCase {
24
26
return // Nothing to build
25
27
}
26
28
27
- let xcodeTools = XcodeTools ( logger: nil )
29
+ let xcodeTools = XcodeTools (
30
+ shell: Shell ( logger: nil ) ,
31
+ logger: nil
32
+ )
28
33
29
34
_ = try await xcodeTools. archive (
30
35
projectDirectoryPath: oldReferencePackageDirectory. path ( ) ,
31
36
scheme: " ReferencePackage " ,
32
37
projectType: . swiftPackage,
33
- platform: . iOS
38
+ platform: . macOS
34
39
)
35
40
_ = try await xcodeTools. archive (
36
41
projectDirectoryPath: newReferencePackageDirectory. path ( ) ,
37
42
scheme: " ReferencePackage " ,
38
43
projectType: . swiftPackage,
39
- platform: . iOS
44
+ platform: . macOS
40
45
)
41
46
}
42
47
@@ -64,7 +69,7 @@ class ReferencePackageTests: XCTestCase {
64
69
newVersionName: " new_public " ,
65
70
warnings: [ ]
66
71
)
67
-
72
+
68
73
let expectedLines = sanitizeOutput ( expectedOutput) . components ( separatedBy: " \n " )
69
74
let markdownOutputLines = sanitizeOutput ( markdownOutput) . components ( separatedBy: " \n " )
70
75
@@ -131,9 +136,9 @@ private extension ReferencePackageTests {
131
136
var interfaceFilePath : String {
132
137
switch self {
133
138
case . public:
134
- " \( XcodeTools . Constants. derivedDataPath) /Build/Products/Debug-iphoneos /ReferencePackage.swiftmodule/arm64-apple-ios .swiftinterface "
139
+ " \( XcodeTools . Constants. derivedDataPath) /Build/Products/Debug/ReferencePackage.swiftmodule/arm64-apple-macos .swiftinterface "
135
140
case . private:
136
- " \( XcodeTools . Constants. derivedDataPath) /Build/Products/Debug-iphoneos /ReferencePackage.swiftmodule/arm64-apple-ios .private.swiftinterface "
141
+ " \( XcodeTools . Constants. derivedDataPath) /Build/Products/Debug/ReferencePackage.swiftmodule/arm64-apple-macos .private.swiftinterface "
137
142
}
138
143
}
139
144
}
0 commit comments