@@ -79,7 +79,7 @@ if development {
79
79
80
80
// MARK: - [env] OPENSWIFTUI_LINK_COREUI
81
81
82
- let linkCoreUI = envEnable ( " OPENSWIFTUI_LINK_COREUI " , default: buildForDarwinPlatform)
82
+ let linkCoreUI = envEnable ( " OPENSWIFTUI_LINK_COREUI " , default: buildForDarwinPlatform && !isSPIDocGenerationBuild )
83
83
84
84
if linkCoreUI {
85
85
sharedCSettings. append (
@@ -457,7 +457,11 @@ extension Target {
457
457
458
458
let useLocalDeps = envEnable ( " OPENSWIFTUI_USE_LOCAL_DEPS " )
459
459
460
- let attributeGraphCondition = envEnable ( " OPENGRAPH_ATTRIBUTEGRAPH " , default: buildForDarwinPlatform)
460
+ // https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3061#issuecomment-2118821061
461
+ // By-pass https://github.com/swiftlang/swift-package-manager/issues/7580
462
+ let isSPIDocGenerationBuild = envEnable ( " SPI_GENERATE_DOCS " , default: false )
463
+
464
+ let attributeGraphCondition = envEnable ( " OPENGRAPH_ATTRIBUTEGRAPH " , default: buildForDarwinPlatform && !isSPIDocGenerationBuild)
461
465
if attributeGraphCondition {
462
466
openSwiftUICoreTarget. addAGSettings ( )
463
467
openSwiftUITarget. addAGSettings ( )
@@ -469,7 +473,7 @@ if attributeGraphCondition {
469
473
openSwiftUIBridgeTestTarget. addAGSettings ( )
470
474
}
471
475
472
- let renderBoxCondition = envEnable ( " OPENBOX_RENDERBOX " , default: buildForDarwinPlatform)
476
+ let renderBoxCondition = envEnable ( " OPENBOX_RENDERBOX " , default: buildForDarwinPlatform && !isSPIDocGenerationBuild )
473
477
if renderBoxCondition {
474
478
openSwiftUICoreTarget. addRBSettings ( )
475
479
openSwiftUITarget. addRBSettings ( )
0 commit comments