Using Glass in SwiftUI Crashes with Missing Weak Symbol

My Xcode project fails to run with the following crash log any time I use a new SwiftUI symbol such as ConcentricRectangle or .glassEffect. I've tried using the legacy linker to no avail. It compiles perfectly fine, and I've tried targeting just macOS 26 also to no avail. This is a macOS project that's compiled just fine for years and compiles and runs on macOS going back to 13.0.

Failed to look up symbolic reference at 0x118e743cd - offset 1916987 - symbol symbolic _____y_____y_____y_____yAAyAAy_____y__________G_____G_____yAFGGSg_ACyAAy_____y_____SSG_____y_____SgGG______tGSgACyAAyAAy_____ATG_____G_AVtGSgtGGAQySbGG______Qo_ 7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lFQO AA15ModifiedContentV AA6VStackV AA05TupleC0V AA01_hC0V AA9RectangleV AA5ColorV AA12_FrameLayoutV AA24_BackgroundStyleModifierV AA6IDViewV 8[ ]012EditorTabBarC0V AA022_EnvironmentKeyWritingS0V A_0W0C AA7DividerV A_0w4JumpyC0V AA08_PaddingP0V AA07DefaultgeH0V in /Users/[ ]/Library/Developer/Xcode/DerivedData/[ ]-grfjhgtlsyiobueapymobkzvfytq/Build/Products/Debug/[ ]/Contents/MacOS/[ ].debug.dylib - pointer at 0x119048408 is likely a reference to a missing weak symbol

Example crashing code:

import SwiftUI

struct MyView: View {
    var body: some View {
        if #available(macOS 26.0, *) {
            Text("what the heck man").glassEffect()
        }
    }
}

Should be noted I can use NSGlassEffectView perfectly fine. It's just any new SwiftUI symbols that crash immediately.

Same thing happens to our users, but somehow only on iPhone 11 with iOS 26 installed. The error message is exactly the same. In our case we have a menu with a label that has a glass effect on iOS 26:

private var sizeSelector: some View {
        Menu {
            // ...
        } label: {
            if #available(iOS 26.0, *) {
                HStack(spacing: 8) {
                    // ...
                }
.glassEffect(.regular.tint(.secondaryBackground.opacity(0.8)).interactive(), in: .capsule)
            } else {
                HStack(spacing: 8) {
                    // ...
                }
                .background(Color.secondaryBackground)
                .clipShape(RoundedRectangle(cornerRadius: 12))
                .tint(.primaryText)
            }
        }
    }

Hi!

Can you please make sure that you're on the same version of Xcode as Mac or iOS? Meaning, say you're running beta 5 of Xcode, make sure you're also on beta 5 of iOS/macOS. We've fully released all of the OS26 releases, so if you can fully update both, that should work as well.

Please let me know if you're still getting the crash. If so, can you file a feedback report at https://feedbackassistant.apple.com and respond with the FB number? Make sure to add a sysdiagnose of the device.

Does version mismatch affect already released builds? We have submitted an update using an Xcode RC build (17A321) after the keynote, the latest build number of Xcode is 17A324. I wonder if simply resubmitting will fix the crash.

Update: it didn't help, the newly released update built on 17A324 still crashes on iOS 26 on iPhone 11. I'll file a feedback report with the crash.

Using Glass in SwiftUI Crashes with Missing Weak Symbol
 
 
Q