Skip to content

Commit cfe51c1

Browse files
committed
Better verification if an archive succeeded
1 parent 3cc8a68 commit cfe51c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/PublicModules/PADProjectBuilder/SwiftInterfaceProducer/XcodeTools.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ struct XcodeTools {
2323

2424
internal enum Constants {
2525
static let derivedDataPath: String = ".build"
26+
static let buildDirPath: String = ".build/Build"
2627
static let simulatorSdkCommand = "xcrun --sdk iphonesimulator --show-sdk-path"
2728
}
2829

@@ -87,16 +88,15 @@ struct XcodeTools {
8788

8889
let result = shell.execute(command)
8990
let derivedDataPath = "\(projectDirectoryPath)/\(Constants.derivedDataPath)"
91+
let buildDirPath = "\(projectDirectoryPath)/\(Constants.buildDirPath)"
9092

9193
logger?.debug(result, from: String(describing: Self.self))
9294

9395
// It might be that the archive failed but the .swiftinterface files are still created
9496
// so we have to check outside if they exist.
9597
//
9698
// Also see: https://github.com/swiftlang/swift/issues/56573
97-
guard fileHandler.fileExists(atPath: derivedDataPath) else {
98-
print(result)
99-
99+
guard fileHandler.fileExists(atPath: buildDirPath) else {
100100
throw XcodeToolsError(
101101
errorDescription: "💥 Building project failed",
102102
underlyingError: result

0 commit comments

Comments
 (0)