Skip to content

Commit 8c8804e

Browse files
committed
Update check in appClips_MacCatalyst_Error() to check for different error formats.
rdar://164727713
1 parent 83f2b44 commit 8c8804e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/SwiftBuildTests/AppClipsTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ fileprivate struct AppClipsTests: CoreBasedTests {
114114
results.checkError(.equal("App Clips are not available when building for Mac Catalyst."))
115115
results.checkNoFailedTasks()
116116
} else {
117-
results.checkError(.equal("Your target is built for macOS but contains embedded content built for the iOS platform (BarClip.app), which is not allowed."))
117+
results.checkError(.or(
118+
.prefix("Your target is built for macOS but contains embedded content built for the iOS platform (BarClip.app), which is not allowed."),
119+
.prefix("This target is built for macOS but contains embedded content (BarClip.app) built for iOS, which is not allowed.")
120+
))
118121
}
119122
results.checkNoDiagnostics()
120123
}

0 commit comments

Comments
 (0)