Our project is quite large, so we use "treat warnings as errors" to keep the codebase as clean as possible. During our recent upgrade to Xcode 26, we noticed that some dependencies such as ZendeskSupportSDK (9.0.0) are emitting deprecation warnings like the following:
'mainScreen' is deprecated: first deprecated in iOS 26.0 - Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.
We tried moving the `ZendeskSupportSDK` dependency into its own target with warnings-as-errors disabled. Unfortunately, that doesn’t seem to work, because the SDK is treated as an explicitly precompiled module. As a result, it is compiled before the rest of the project and still picks up the main app target’s treat warnings as errors setting.
We're wondering if there is a way for the dependency to either 1) move away from using UIScreen.main altogether or 2) suppress warnings from ZendeskSupportSDK?
Thanks so much!