Post

Replies

Boosts

Views

Activity

Reply to Running tests that doesn't use SwiftData with iOS 16
Hi! Thanks for the response. That didn't work for me as I'm using Xcode 15 and latest Swift version, so it actually builds ok, but the problem is at runtime. However, I found out a TEST constant that is set when building for test so I managed to use like this to avoid referencing SwiftData at all when building for test: #if !TEST @Model #endif final class Set { // ... } I'm not allowed to test anything related to this part of the application, but at least I don't have to disable the entire test suite in order to merge this feature. And I hope the CI is fixed soon so I can delete all these conditional code. :pray:
Oct ’23