Just so we’re clear, ObservableObject isn’t part of Observation but part of Combine. I tried this out here in my office: Using Xcode 26.0.1, I created a new project from the macOS > Command Line Tool template. I changed main.swift to this code: import Combine class XYZ: ObservableObject { } I chose Product > Build and it compiled just fine. I’m not sure what’s going on in your case but it’s clearly context dependent. My advice is that you repeat the above steps to see if you can get the basics working. After that you can then explore why your original project is behaving differently from this test project. [quote='802686021, Gatti, /thread/802686, /profile/Gatti'] after updating to 26.0.1 [/quote] Upgrading from what? Xcode 26.0? Or Xcode 16.4? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: