Skip to content

Commit 6f05199

Browse files
authored
Use '@_implementationOnly' when importing 'Foundation.Bundle' in generated resource bundle accessor
1 parent 8970e01 commit 6f05199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ public final class SwiftTargetBuildDescription {
791791

792792
let stream = BufferedOutputByteStream()
793793
stream <<< """
794-
import class Foundation.Bundle
794+
\(toolsVersion > .v5_7 ? "@_implementationOnly import" : "import") class Foundation.Bundle
795795
796796
extension Foundation.Bundle {
797797
static var module: Bundle = {

0 commit comments

Comments
 (0)