Build Information
Failed to build LeakedViewControllerDetector, reference main (e5200a), with Swift 6.4 for watchOS using Xcode 27.0 on 27 Sep 2026 03:32:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme LeakedViewControllerDetector -destination generic/platform=watchOSBuild Log
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:41: error: 'UIApplication' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIApplication' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1136:37: error: 'UIWindowScene' is unavailable in watchOS
1134 |
1135 | @available(iOS 13.0, tvOS 13, *)
1136 | var lvcdFirstActiveWindowScene: UIWindowScene? {
| `- error: 'UIWindowScene' is unavailable in watchOS
1137 | let activeScenes = UIApplication.shared.connectedScenes
1138 | .filter { $0.activationState == UIScene.ActivationState.foregroundActive && $0 is UIWindowScene }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1095:19: error: 'UIApplication' is unavailable in watchOS
1093 | }
1094 |
1095 | private extension UIApplication {
| `- error: 'UIApplication' is unavailable in watchOS
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift -target arm64_32-apple-watchos9.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector-dependencies-1.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name LeakedViewControllerDetector -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64_32/LeakedViewControllerDetector.abi.json
SwiftEmitModule normal arm64 Emitting\ module\ for\ LeakedViewControllerDetector (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:51: error: 'UIViewController' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIViewController' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:70: error: 'UIView' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIView' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:21:43: error: 'UIWindow' is unavailable in watchOS
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
| `- error: 'UIWindow' is unavailable in watchOS
22 | fileprivate static var lastBackgroundedDate = Date(timeIntervalSince1970: 0)
23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:41: error: 'UIViewController' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIViewController' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:60: error: 'UIView' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIView' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:91:18: error: 'UIView' is unavailable in watchOS
89 | }
90 |
91 | public extension UIView {
| `- error: 'UIView' is unavailable in watchOS
92 | /**
93 | Same as removeFromSuperview() but it also checks if it or any of its subviews don't deinit after the view is removed from the view tree. In that case the LeakedViewControllerDetector warning callback will be triggered.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:365:43: error: 'UIView' is unavailable in watchOS
363 | }
364 |
365 | func iterateTopSubviews(onViewFound: (UIView) -> Void) {
| `- error: 'UIView' is unavailable in watchOS
366 | var hasSubview = false
367 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:379:82: error: 'UIView' is unavailable in watchOS
377 | }
378 |
379 | func iterateSubviews(maxLevel: UInt = UInt.max, level: UInt = 0, onSubview: (UIView, UInt) -> (Bool)) {
| `- error: 'UIView' is unavailable in watchOS
380 | if onSubview(self, level) {
381 | let level = level + 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:390:19: error: 'UIView' is unavailable in watchOS
388 | }
389 |
390 | var rootView: UIView {
| `- error: 'UIView' is unavailable in watchOS
391 | superview?.rootView ?? self
392 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:394:30: error: 'UIViewController' is unavailable in watchOS
392 | }
393 |
394 | var firstViewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
395 | sequence(first: self, next: { $0.next }).first(where: { $0 is UIViewController }) as? UIViewController
396 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:115:19: error: 'UIView' is unavailable in watchOS
113 | }
114 |
115 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
116 | @objc func checkForLeakedSubViews() {
117 | let delay = LeakedViewControllerDetector.delay
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:408:57: error: 'UIViewController' is unavailable in watchOS
406 |
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:409:57: error: 'UIViewController' is unavailable in watchOS
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
411 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:424:57: error: 'UIViewController' is unavailable in watchOS
422 | // method_exchangeImplementations(originalVdaMethod!, swizzledVdaMethod!)
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:425:57: error: 'UIViewController' is unavailable in watchOS
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:428:57: error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:429:57: error: 'UIViewController' is unavailable in watchOS
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:432:57: error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:433:57: error: 'UIViewController' is unavailable in watchOS
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
435 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:437:13: error: 'UISplitViewController' is unavailable in watchOS
435 |
436 | let originalSdvcMethod = class_getInstanceMethod(
437 | UISplitViewController.self,
| `- error: 'UISplitViewController' is unavailable in watchOS
438 | #selector(showDetailViewController(_:sender:))
439 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:441:13: error: 'UIViewController' is unavailable in watchOS
439 | )
440 | let swizzledSdvcMethod = class_getInstanceMethod(
441 | UIViewController.self,
| `- error: 'UIViewController' is unavailable in watchOS
442 | #selector(lvcdShowDetailViewController(_:sender:))
443 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:446:56: error: 'UIViewController' is unavailable in watchOS
444 | method_exchangeImplementations(originalSdvcMethod!, swizzledSdvcMethod!)
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
| `- error: 'UIViewController' is unavailable in watchOS
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:447:56: error: 'UIViewController' is unavailable in watchOS
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
449 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:464:47: error: 'UIView' is unavailable in watchOS
462 | }
463 |
464 | @objc private func lvcdSetView(_ newView: UIView?) {
| `- error: 'UIView' is unavailable in watchOS
465 | if isViewLoaded, let deallocator = objc_getAssociatedObject(self, &LVCDDeallocator.key) as? LVCDDeallocator {
466 | deallocator.strongView?.checkForLeakedSubViews()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:563:59: error: 'UIViewController' is unavailable in watchOS
561 | }
562 |
563 | @objc private func lvcdShowDetailViewController(_ vc: UIViewController, sender: Any?) {
| `- error: 'UIViewController' is unavailable in watchOS
564 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForSplitViewVCMemoryLeakNotification, object: self)
565 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForMemoryLeakNotification, object: nil)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:581:39: error: 'UIViewController' is unavailable in watchOS
579 | }
580 |
581 | var lvcdRootParentViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
582 | parent?.lvcdRootParentViewController ?? self
583 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:855:31: error: 'UIViewController' is unavailable in watchOS
853 | }
854 |
855 | class LVCDViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
856 | // gets listed in lvcdShouldIgnore() to prevent trigering warnings itself
857 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:935:60: error: 'UIAlertAction' is unavailable in watchOS
933 | }
934 |
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
| `- error: 'UIAlertAction' is unavailable in watchOS
936 |
937 | func triggerAction(_ action: UIAlertAction) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:937:38: error: 'UIAlertAction' is unavailable in watchOS
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
936 |
937 | func triggerAction(_ action: UIAlertAction) {
| `- error: 'UIAlertAction' is unavailable in watchOS
938 | guard let block = action.value(forKey: "handler") else { return }
939 | let handler = unsafeBitCast(block as AnyObject, to: alertActionHandler.self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:859:32: error: 'UIAlertController' is unavailable in watchOS
857 | }
858 |
859 | class LVCDAlertController: UIAlertController {
| `- error: 'UIAlertController' is unavailable in watchOS
860 | override func viewWillDisappear(_ animated: Bool) {
861 | super.viewWillDisappear(animated)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:43:12: note: 'UIAlertController' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIAlertController : UIViewController
| `- note: 'UIAlertController' has been explicitly marked unavailable here
44 |
45 | + (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:973:39: error: 'UISplitViewController' is unavailable in watchOS
971 | nonisolated(unsafe) static var key = malloc(1)!
972 |
973 | weak var splitViewController: UISplitViewController?
| `- error: 'UISplitViewController' is unavailable in watchOS
974 | weak var viewController: UIViewController? { didSet {
975 | NotificationCenter.lvcd.addObserver(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:978:23: error: 'UIViewController' is unavailable in watchOS
976 | self,
977 | selector: #selector(checkIfBelongsToSplitViewController(_:)),
978 | name: UIViewController.lvcdCheckForSplitViewVCMemoryLeakNotification,
| `- error: 'UIViewController' is unavailable in watchOS
979 | object: nil
980 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:974:34: error: 'UIViewController' is unavailable in watchOS
972 |
973 | weak var splitViewController: UISplitViewController?
974 | weak var viewController: UIViewController? { didSet {
| `- error: 'UIViewController' is unavailable in watchOS
975 | NotificationCenter.lvcd.addObserver(
976 | self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:399:19: error: 'UIViewController' is unavailable in watchOS
397 | }
398 |
399 | private extension UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
400 | static let lvcdCheckForMemoryLeakNotification = Notification.Name("lvcdCheckForMemoryLeak")
401 | static let lvcdCheckForSplitViewVCMemoryLeakNotification = Notification.Name("lvcdCheckForSplitViewVCMemoryLeak")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1032:21: error: 'UIView' is unavailable in watchOS
1030 |
1031 | // used by ViewController
1032 | var strongView: UIView?
| `- error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1035:20: error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
1035 | var subviews: [UIView]?
| `- error: 'UIView' is unavailable in watchOS
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1037:24: error: 'UIView' is unavailable in watchOS
1035 | var subviews: [UIView]?
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
| `- error: 'UIView' is unavailable in watchOS
1038 | subviewObserver?.invalidate()
1039 | subviewObserver = weakView?.layer.observe(\.sublayers, options: [.old, .new]) { [weak self] _, _ in
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1050:18: error: 'UIView' is unavailable in watchOS
1048 | }}
1049 |
1050 | init(_ view: UIView? = nil) {
| `- error: 'UIView' is unavailable in watchOS
1051 | strongView = view
1052 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1090:25: error: 'UIViewController' is unavailable in watchOS
1088 |
1089 | private extension UIResponder {
1090 | var viewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
1091 | next as? UIViewController ?? next?.viewController
1092 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1089:19: error: 'UIResponder' is unavailable in watchOS
1087 | }
1088 |
1089 | private extension UIResponder {
| `- error: 'UIResponder' is unavailable in watchOS
1090 | var viewController: UIViewController? {
1091 | next as? UIViewController ?? next?.viewController
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:82:12: note: 'UIResponder' has been explicitly marked unavailable here
80 |
81 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
82 | @interface UIResponder : NSObject <UIResponderStandardEditActions>
| `- note: 'UIResponder' has been explicitly marked unavailable here
83 |
84 | @property(nonatomic, readonly, nullable) UIResponder *nextResponder;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1097:34: error: 'UIWindow' is unavailable in watchOS
1095 | private extension UIApplication {
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
| `- error: 'UIWindow' is unavailable in watchOS
1098 | if #available(iOS 13, tvOS 13, *) {
1099 | let activeScenes = connectedScenes.filter { $0.activationState == UIScene.ActivationState.foregroundActive }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:50: error: 'UIViewController' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1111:12: error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
1111 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1112 | {
1113 | controller?.presentedViewController != nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:70: error: 'UIApplication' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIApplication' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:21: error: 'UIViewController' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1122:12: error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
1122 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1123 | {
1124 | controller == nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:41: error: 'UIApplication' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIApplication' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1136:37: error: 'UIWindowScene' is unavailable in watchOS
1134 |
1135 | @available(iOS 13.0, tvOS 13, *)
1136 | var lvcdFirstActiveWindowScene: UIWindowScene? {
| `- error: 'UIWindowScene' is unavailable in watchOS
1137 | let activeScenes = UIApplication.shared.connectedScenes
1138 | .filter { $0.activationState == UIScene.ActivationState.foregroundActive && $0 is UIWindowScene }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1095:19: error: 'UIApplication' is unavailable in watchOS
1093 | }
1094 |
1095 | private extension UIApplication {
| `- error: 'UIApplication' is unavailable in watchOS
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
Failed frontend command:
SwiftCompile normal arm64 (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift -target arm64-apple-watchos9.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector-dependencies-2.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name LeakedViewControllerDetector -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/LeakedViewControllerDetector.build/Debug-watchos/LeakedViewControllerDetector-t.build/Objects-normal/arm64/LeakedViewControllerDetector.abi.json
SwiftCompile normal arm64_32 Compiling\ LeakedViewControllerDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:51: error: 'UIViewController' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIViewController' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:70: error: 'UIView' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIView' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:21:43: error: 'UIWindow' is unavailable in watchOS
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
| `- error: 'UIWindow' is unavailable in watchOS
22 | fileprivate static var lastBackgroundedDate = Date(timeIntervalSince1970: 0)
23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:41: error: 'UIViewController' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIViewController' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:60: error: 'UIView' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIView' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:91:18: error: 'UIView' is unavailable in watchOS
89 | }
90 |
91 | public extension UIView {
| `- error: 'UIView' is unavailable in watchOS
92 | /**
93 | Same as removeFromSuperview() but it also checks if it or any of its subviews don't deinit after the view is removed from the view tree. In that case the LeakedViewControllerDetector warning callback will be triggered.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:365:43: error: 'UIView' is unavailable in watchOS
363 | }
364 |
365 | func iterateTopSubviews(onViewFound: (UIView) -> Void) {
| `- error: 'UIView' is unavailable in watchOS
366 | var hasSubview = false
367 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:379:82: error: 'UIView' is unavailable in watchOS
377 | }
378 |
379 | func iterateSubviews(maxLevel: UInt = UInt.max, level: UInt = 0, onSubview: (UIView, UInt) -> (Bool)) {
| `- error: 'UIView' is unavailable in watchOS
380 | if onSubview(self, level) {
381 | let level = level + 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:390:19: error: 'UIView' is unavailable in watchOS
388 | }
389 |
390 | var rootView: UIView {
| `- error: 'UIView' is unavailable in watchOS
391 | superview?.rootView ?? self
392 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:394:30: error: 'UIViewController' is unavailable in watchOS
392 | }
393 |
394 | var firstViewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
395 | sequence(first: self, next: { $0.next }).first(where: { $0 is UIViewController }) as? UIViewController
396 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:115:19: error: 'UIView' is unavailable in watchOS
113 | }
114 |
115 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
116 | @objc func checkForLeakedSubViews() {
117 | let delay = LeakedViewControllerDetector.delay
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:408:57: error: 'UIViewController' is unavailable in watchOS
406 |
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:409:57: error: 'UIViewController' is unavailable in watchOS
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
411 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:424:57: error: 'UIViewController' is unavailable in watchOS
422 | // method_exchangeImplementations(originalVdaMethod!, swizzledVdaMethod!)
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:425:57: error: 'UIViewController' is unavailable in watchOS
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:428:57: error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:429:57: error: 'UIViewController' is unavailable in watchOS
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:432:57: error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:433:57: error: 'UIViewController' is unavailable in watchOS
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
435 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:437:13: error: 'UISplitViewController' is unavailable in watchOS
435 |
436 | let originalSdvcMethod = class_getInstanceMethod(
437 | UISplitViewController.self,
| `- error: 'UISplitViewController' is unavailable in watchOS
438 | #selector(showDetailViewController(_:sender:))
439 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:441:13: error: 'UIViewController' is unavailable in watchOS
439 | )
440 | let swizzledSdvcMethod = class_getInstanceMethod(
441 | UIViewController.self,
| `- error: 'UIViewController' is unavailable in watchOS
442 | #selector(lvcdShowDetailViewController(_:sender:))
443 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:446:56: error: 'UIViewController' is unavailable in watchOS
444 | method_exchangeImplementations(originalSdvcMethod!, swizzledSdvcMethod!)
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
| `- error: 'UIViewController' is unavailable in watchOS
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:447:56: error: 'UIViewController' is unavailable in watchOS
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
449 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:464:47: error: 'UIView' is unavailable in watchOS
462 | }
463 |
464 | @objc private func lvcdSetView(_ newView: UIView?) {
| `- error: 'UIView' is unavailable in watchOS
465 | if isViewLoaded, let deallocator = objc_getAssociatedObject(self, &LVCDDeallocator.key) as? LVCDDeallocator {
466 | deallocator.strongView?.checkForLeakedSubViews()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:563:59: error: 'UIViewController' is unavailable in watchOS
561 | }
562 |
563 | @objc private func lvcdShowDetailViewController(_ vc: UIViewController, sender: Any?) {
| `- error: 'UIViewController' is unavailable in watchOS
564 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForSplitViewVCMemoryLeakNotification, object: self)
565 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForMemoryLeakNotification, object: nil)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:581:39: error: 'UIViewController' is unavailable in watchOS
579 | }
580 |
581 | var lvcdRootParentViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
582 | parent?.lvcdRootParentViewController ?? self
583 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:855:31: error: 'UIViewController' is unavailable in watchOS
853 | }
854 |
855 | class LVCDViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
856 | // gets listed in lvcdShouldIgnore() to prevent trigering warnings itself
857 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:935:60: error: 'UIAlertAction' is unavailable in watchOS
933 | }
934 |
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
| `- error: 'UIAlertAction' is unavailable in watchOS
936 |
937 | func triggerAction(_ action: UIAlertAction) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:937:38: error: 'UIAlertAction' is unavailable in watchOS
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
936 |
937 | func triggerAction(_ action: UIAlertAction) {
| `- error: 'UIAlertAction' is unavailable in watchOS
938 | guard let block = action.value(forKey: "handler") else { return }
939 | let handler = unsafeBitCast(block as AnyObject, to: alertActionHandler.self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:859:32: error: 'UIAlertController' is unavailable in watchOS
857 | }
858 |
859 | class LVCDAlertController: UIAlertController {
| `- error: 'UIAlertController' is unavailable in watchOS
860 | override func viewWillDisappear(_ animated: Bool) {
861 | super.viewWillDisappear(animated)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:43:12: note: 'UIAlertController' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIAlertController : UIViewController
| `- note: 'UIAlertController' has been explicitly marked unavailable here
44 |
45 | + (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:973:39: error: 'UISplitViewController' is unavailable in watchOS
971 | nonisolated(unsafe) static var key = malloc(1)!
972 |
973 | weak var splitViewController: UISplitViewController?
| `- error: 'UISplitViewController' is unavailable in watchOS
974 | weak var viewController: UIViewController? { didSet {
975 | NotificationCenter.lvcd.addObserver(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:978:23: error: 'UIViewController' is unavailable in watchOS
976 | self,
977 | selector: #selector(checkIfBelongsToSplitViewController(_:)),
978 | name: UIViewController.lvcdCheckForSplitViewVCMemoryLeakNotification,
| `- error: 'UIViewController' is unavailable in watchOS
979 | object: nil
980 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:974:34: error: 'UIViewController' is unavailable in watchOS
972 |
973 | weak var splitViewController: UISplitViewController?
974 | weak var viewController: UIViewController? { didSet {
| `- error: 'UIViewController' is unavailable in watchOS
975 | NotificationCenter.lvcd.addObserver(
976 | self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:399:19: error: 'UIViewController' is unavailable in watchOS
397 | }
398 |
399 | private extension UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
400 | static let lvcdCheckForMemoryLeakNotification = Notification.Name("lvcdCheckForMemoryLeak")
401 | static let lvcdCheckForSplitViewVCMemoryLeakNotification = Notification.Name("lvcdCheckForSplitViewVCMemoryLeak")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1032:21: error: 'UIView' is unavailable in watchOS
1030 |
1031 | // used by ViewController
1032 | var strongView: UIView?
| `- error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1035:20: error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
1035 | var subviews: [UIView]?
| `- error: 'UIView' is unavailable in watchOS
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1037:24: error: 'UIView' is unavailable in watchOS
1035 | var subviews: [UIView]?
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
| `- error: 'UIView' is unavailable in watchOS
1038 | subviewObserver?.invalidate()
1039 | subviewObserver = weakView?.layer.observe(\.sublayers, options: [.old, .new]) { [weak self] _, _ in
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1050:18: error: 'UIView' is unavailable in watchOS
1048 | }}
1049 |
1050 | init(_ view: UIView? = nil) {
| `- error: 'UIView' is unavailable in watchOS
1051 | strongView = view
1052 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1090:25: error: 'UIViewController' is unavailable in watchOS
1088 |
1089 | private extension UIResponder {
1090 | var viewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
1091 | next as? UIViewController ?? next?.viewController
1092 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1089:19: error: 'UIResponder' is unavailable in watchOS
1087 | }
1088 |
1089 | private extension UIResponder {
| `- error: 'UIResponder' is unavailable in watchOS
1090 | var viewController: UIViewController? {
1091 | next as? UIViewController ?? next?.viewController
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:82:12: note: 'UIResponder' has been explicitly marked unavailable here
80 |
81 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
82 | @interface UIResponder : NSObject <UIResponderStandardEditActions>
| `- note: 'UIResponder' has been explicitly marked unavailable here
83 |
84 | @property(nonatomic, readonly, nullable) UIResponder *nextResponder;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1097:34: error: 'UIWindow' is unavailable in watchOS
1095 | private extension UIApplication {
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
| `- error: 'UIWindow' is unavailable in watchOS
1098 | if #available(iOS 13, tvOS 13, *) {
1099 | let activeScenes = connectedScenes.filter { $0.activationState == UIScene.ActivationState.foregroundActive }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:50: error: 'UIViewController' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1111:12: error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
1111 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1112 | {
1113 | controller?.presentedViewController != nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:70: error: 'UIApplication' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIApplication' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:21: error: 'UIViewController' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1122:12: error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
1122 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1123 | {
1124 | controller == nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:41: error: 'UIApplication' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIApplication' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1136:37: error: 'UIWindowScene' is unavailable in watchOS
1134 |
1135 | @available(iOS 13.0, tvOS 13, *)
1136 | var lvcdFirstActiveWindowScene: UIWindowScene? {
| `- error: 'UIWindowScene' is unavailable in watchOS
1137 | let activeScenes = UIApplication.shared.connectedScenes
1138 | .filter { $0.activationState == UIScene.ActivationState.foregroundActive && $0 is UIWindowScene }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1095:19: error: 'UIApplication' is unavailable in watchOS
1093 | }
1094 |
1095 | private extension UIApplication {
| `- error: 'UIApplication' is unavailable in watchOS
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LeakedViewControllerDetector.swift
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:34:9: error: 'UIViewController' is unavailable in watchOS
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
| `- error: 'UIViewController' is unavailable in watchOS
35 | delay = detectionDelay
36 | self.callback = callback
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:41:19: error: 'UIApplication' is unavailable in watchOS
39 | self,
40 | selector: #selector(toBackground),
41 | name: UIApplication.didEnterBackgroundNotification,
| `- error: 'UIApplication' is unavailable in watchOS
42 | object: nil
43 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
SwiftCompile normal arm64 Compiling\ LeakedViewControllerDetector.swift /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:51: error: 'UIViewController' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIViewController' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:19:70: error: 'UIView' is unavailable in watchOS
17 | @MainActor
18 | public class LeakedViewControllerDetector: NSObject {
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
| `- error: 'UIView' is unavailable in watchOS
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:21:43: error: 'UIWindow' is unavailable in watchOS
19 | fileprivate static var callback: (@MainActor (UIViewController?, UIView?, String) -> Action)?
20 | fileprivate static var delay: Double = 1.0
21 | fileprivate static var warningWindow: UIWindow?
| `- error: 'UIWindow' is unavailable in watchOS
22 | fileprivate static var lastBackgroundedDate = Date(timeIntervalSince1970: 0)
23 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:41: error: 'UIViewController' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIViewController' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:32:60: error: 'UIView' is unavailable in watchOS
30 | @objc public static func onDetect(
31 | detectionDelay: TimeInterval = 1.0,
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
| `- error: 'UIView' is unavailable in watchOS
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:91:18: error: 'UIView' is unavailable in watchOS
89 | }
90 |
91 | public extension UIView {
| `- error: 'UIView' is unavailable in watchOS
92 | /**
93 | Same as removeFromSuperview() but it also checks if it or any of its subviews don't deinit after the view is removed from the view tree. In that case the LeakedViewControllerDetector warning callback will be triggered.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:365:43: error: 'UIView' is unavailable in watchOS
363 | }
364 |
365 | func iterateTopSubviews(onViewFound: (UIView) -> Void) {
| `- error: 'UIView' is unavailable in watchOS
366 | var hasSubview = false
367 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:379:82: error: 'UIView' is unavailable in watchOS
377 | }
378 |
379 | func iterateSubviews(maxLevel: UInt = UInt.max, level: UInt = 0, onSubview: (UIView, UInt) -> (Bool)) {
| `- error: 'UIView' is unavailable in watchOS
380 | if onSubview(self, level) {
381 | let level = level + 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:390:19: error: 'UIView' is unavailable in watchOS
388 | }
389 |
390 | var rootView: UIView {
| `- error: 'UIView' is unavailable in watchOS
391 | superview?.rootView ?? self
392 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:394:30: error: 'UIViewController' is unavailable in watchOS
392 | }
393 |
394 | var firstViewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
395 | sequence(first: self, next: { $0.next }).first(where: { $0 is UIViewController }) as? UIViewController
396 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:115:19: error: 'UIView' is unavailable in watchOS
113 | }
114 |
115 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
116 | @objc func checkForLeakedSubViews() {
117 | let delay = LeakedViewControllerDetector.delay
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:408:57: error: 'UIViewController' is unavailable in watchOS
406 |
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:409:57: error: 'UIViewController' is unavailable in watchOS
407 | private static let lvcdActuallySwizzleLifecycleMethods: Void = {
408 | let originalVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidLoad))
409 | let swizzledVdlMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidLoad))
| `- error: 'UIViewController' is unavailable in watchOS
410 | method_exchangeImplementations(originalVdlMethod!, swizzledVdlMethod!)
411 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:424:57: error: 'UIViewController' is unavailable in watchOS
422 | // method_exchangeImplementations(originalVdaMethod!, swizzledVdaMethod!)
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:425:57: error: 'UIViewController' is unavailable in watchOS
423 |
424 | let originalVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(viewWillDisappear(_:)))
425 | let swizzledVwdMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewWillDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:428:57: error: 'UIViewController' is unavailable in watchOS
426 | method_exchangeImplementations(originalVwdMethod!, swizzledVwdMethod!)
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:429:57: error: 'UIViewController' is unavailable in watchOS
427 |
428 | let originalVddMethod = class_getInstanceMethod(UIViewController.self, #selector(viewDidDisappear(_:)))
429 | let swizzledVddMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdViewDidDisappear(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:432:57: error: 'UIViewController' is unavailable in watchOS
430 | method_exchangeImplementations(originalVddMethod!, swizzledVddMethod!)
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:433:57: error: 'UIViewController' is unavailable in watchOS
431 |
432 | let originalRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(removeFromParent))
433 | let swizzledRfpMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdRemoveFromParent))
| `- error: 'UIViewController' is unavailable in watchOS
434 | method_exchangeImplementations(originalRfpMethod!, swizzledRfpMethod!)
435 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:437:13: error: 'UISplitViewController' is unavailable in watchOS
435 |
436 | let originalSdvcMethod = class_getInstanceMethod(
437 | UISplitViewController.self,
| `- error: 'UISplitViewController' is unavailable in watchOS
438 | #selector(showDetailViewController(_:sender:))
439 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:441:13: error: 'UIViewController' is unavailable in watchOS
439 | )
440 | let swizzledSdvcMethod = class_getInstanceMethod(
441 | UIViewController.self,
| `- error: 'UIViewController' is unavailable in watchOS
442 | #selector(lvcdShowDetailViewController(_:sender:))
443 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:446:56: error: 'UIViewController' is unavailable in watchOS
444 | method_exchangeImplementations(originalSdvcMethod!, swizzledSdvcMethod!)
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
| `- error: 'UIViewController' is unavailable in watchOS
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:447:56: error: 'UIViewController' is unavailable in watchOS
445 |
446 | let originalSvMethod = class_getInstanceMethod(UIViewController.self, #selector(setter: view))
447 | let swizzledSvMethod = class_getInstanceMethod(UIViewController.self, #selector(lvcdSetView(_:)))
| `- error: 'UIViewController' is unavailable in watchOS
448 | method_exchangeImplementations(originalSvMethod!, swizzledSvMethod!)
449 | }()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:464:47: error: 'UIView' is unavailable in watchOS
462 | }
463 |
464 | @objc private func lvcdSetView(_ newView: UIView?) {
| `- error: 'UIView' is unavailable in watchOS
465 | if isViewLoaded, let deallocator = objc_getAssociatedObject(self, &LVCDDeallocator.key) as? LVCDDeallocator {
466 | deallocator.strongView?.checkForLeakedSubViews()
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:563:59: error: 'UIViewController' is unavailable in watchOS
561 | }
562 |
563 | @objc private func lvcdShowDetailViewController(_ vc: UIViewController, sender: Any?) {
| `- error: 'UIViewController' is unavailable in watchOS
564 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForSplitViewVCMemoryLeakNotification, object: self)
565 | NotificationCenter.lvcd.post(name: Self.lvcdCheckForMemoryLeakNotification, object: nil)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:581:39: error: 'UIViewController' is unavailable in watchOS
579 | }
580 |
581 | var lvcdRootParentViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
582 | parent?.lvcdRootParentViewController ?? self
583 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:855:31: error: 'UIViewController' is unavailable in watchOS
853 | }
854 |
855 | class LVCDViewController: UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
856 | // gets listed in lvcdShouldIgnore() to prevent trigering warnings itself
857 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:935:60: error: 'UIAlertAction' is unavailable in watchOS
933 | }
934 |
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
| `- error: 'UIAlertAction' is unavailable in watchOS
936 |
937 | func triggerAction(_ action: UIAlertAction) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:937:38: error: 'UIAlertAction' is unavailable in watchOS
935 | typealias alertActionHandler = @convention(block) (UIAlertAction) -> Void
936 |
937 | func triggerAction(_ action: UIAlertAction) {
| `- error: 'UIAlertAction' is unavailable in watchOS
938 | guard let block = action.value(forKey: "handler") else { return }
939 | let handler = unsafeBitCast(block as AnyObject, to: alertActionHandler.self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:32:12: note: 'UIAlertAction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIAlertAction : NSObject <NSCopying>
| `- note: 'UIAlertAction' has been explicitly marked unavailable here
33 |
34 | + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ __nullable)(UIAlertAction *action))handler;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:859:32: error: 'UIAlertController' is unavailable in watchOS
857 | }
858 |
859 | class LVCDAlertController: UIAlertController {
| `- error: 'UIAlertController' is unavailable in watchOS
860 | override func viewWillDisappear(_ animated: Bool) {
861 | super.viewWillDisappear(animated)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h:43:12: note: 'UIAlertController' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIAlertController : UIViewController
| `- note: 'UIAlertController' has been explicitly marked unavailable here
44 |
45 | + (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:973:39: error: 'UISplitViewController' is unavailable in watchOS
971 | nonisolated(unsafe) static var key = malloc(1)!
972 |
973 | weak var splitViewController: UISplitViewController?
| `- error: 'UISplitViewController' is unavailable in watchOS
974 | weak var viewController: UIViewController? { didSet {
975 | NotificationCenter.lvcd.addObserver(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h:78:12: note: 'UISplitViewController' has been explicitly marked unavailable here
76 |
77 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
78 | @interface UISplitViewController : UIViewController
| `- note: 'UISplitViewController' has been explicitly marked unavailable here
79 |
80 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:978:23: error: 'UIViewController' is unavailable in watchOS
976 | self,
977 | selector: #selector(checkIfBelongsToSplitViewController(_:)),
978 | name: UIViewController.lvcdCheckForSplitViewVCMemoryLeakNotification,
| `- error: 'UIViewController' is unavailable in watchOS
979 | object: nil
980 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:974:34: error: 'UIViewController' is unavailable in watchOS
972 |
973 | weak var splitViewController: UISplitViewController?
974 | weak var viewController: UIViewController? { didSet {
| `- error: 'UIViewController' is unavailable in watchOS
975 | NotificationCenter.lvcd.addObserver(
976 | self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:399:19: error: 'UIViewController' is unavailable in watchOS
397 | }
398 |
399 | private extension UIViewController {
| `- error: 'UIViewController' is unavailable in watchOS
400 | static let lvcdCheckForMemoryLeakNotification = Notification.Name("lvcdCheckForMemoryLeak")
401 | static let lvcdCheckForSplitViewVCMemoryLeakNotification = Notification.Name("lvcdCheckForSplitViewVCMemoryLeak")
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1032:21: error: 'UIView' is unavailable in watchOS
1030 |
1031 | // used by ViewController
1032 | var strongView: UIView?
| `- error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1035:20: error: 'UIView' is unavailable in watchOS
1033 |
1034 | // used by View
1035 | var subviews: [UIView]?
| `- error: 'UIView' is unavailable in watchOS
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1037:24: error: 'UIView' is unavailable in watchOS
1035 | var subviews: [UIView]?
1036 | var subviewObserver: NSKeyValueObservation?
1037 | weak var weakView: UIView? { didSet {
| `- error: 'UIView' is unavailable in watchOS
1038 | subviewObserver?.invalidate()
1039 | subviewObserver = weakView?.layer.observe(\.sublayers, options: [.old, .new]) { [weak self] _, _ in
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1050:18: error: 'UIView' is unavailable in watchOS
1048 | }}
1049 |
1050 | init(_ view: UIView? = nil) {
| `- error: 'UIView' is unavailable in watchOS
1051 | strongView = view
1052 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1090:25: error: 'UIViewController' is unavailable in watchOS
1088 |
1089 | private extension UIResponder {
1090 | var viewController: UIViewController? {
| `- error: 'UIViewController' is unavailable in watchOS
1091 | next as? UIViewController ?? next?.viewController
1092 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1089:19: error: 'UIResponder' is unavailable in watchOS
1087 | }
1088 |
1089 | private extension UIResponder {
| `- error: 'UIResponder' is unavailable in watchOS
1090 | var viewController: UIViewController? {
1091 | next as? UIViewController ?? next?.viewController
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:82:12: note: 'UIResponder' has been explicitly marked unavailable here
80 |
81 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
82 | @interface UIResponder : NSObject <UIResponderStandardEditActions>
| `- note: 'UIResponder' has been explicitly marked unavailable here
83 |
84 | @property(nonatomic, readonly, nullable) UIResponder *nextResponder;
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1097:34: error: 'UIWindow' is unavailable in watchOS
1095 | private extension UIApplication {
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
| `- error: 'UIWindow' is unavailable in watchOS
1098 | if #available(iOS 13, tvOS 13, *) {
1099 | let activeScenes = connectedScenes.filter { $0.activationState == UIScene.ActivationState.foregroundActive }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:50: error: 'UIViewController' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1111:12: error: 'UIViewController' is unavailable in watchOS
1109 | .rootViewController
1110 | )
1111 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1112 | {
1113 | controller?.presentedViewController != nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1108:70: error: 'UIApplication' is unavailable in watchOS
1106 | }
1107 |
1108 | class func lvcdTopViewController(controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?
| `- error: 'UIApplication' is unavailable in watchOS
1109 | .rootViewController
1110 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:21: error: 'UIViewController' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1122:12: error: 'UIViewController' is unavailable in watchOS
1120 | tag: Int
1121 | )
1122 | -> UIViewController?
| `- error: 'UIViewController' is unavailable in watchOS
1123 | {
1124 | controller == nil
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1119:41: error: 'UIApplication' is unavailable in watchOS
1117 |
1118 | class func lvcdFindViewControllerWithTag(
1119 | controller: UIViewController? = UIApplication.shared.lvcdActiveMainKeyWindow?.rootViewController,
| `- error: 'UIApplication' is unavailable in watchOS
1120 | tag: Int
1121 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1136:37: error: 'UIWindowScene' is unavailable in watchOS
1134 |
1135 | @available(iOS 13.0, tvOS 13, *)
1136 | var lvcdFirstActiveWindowScene: UIWindowScene? {
| `- error: 'UIWindowScene' is unavailable in watchOS
1137 | let activeScenes = UIApplication.shared.connectedScenes
1138 | .filter { $0.activationState == UIScene.ActivationState.foregroundActive && $0 is UIWindowScene }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:1095:19: error: 'UIApplication' is unavailable in watchOS
1093 | }
1094 |
1095 | private extension UIApplication {
| `- error: 'UIApplication' is unavailable in watchOS
1096 | /// get a window, preferably once that is in foreground (active) in case you have multiple windows on iPad
1097 | var lvcdActiveMainKeyWindow: UIWindow? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LeakedViewControllerDetector.swift
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:34:9: error: 'UIViewController' is unavailable in watchOS
32 | callback: @escaping @MainActor (UIViewController?, UIView?, String) -> Action
33 | ) {
34 | UIViewController.lvcdSwizzleLifecycleMethods()
| `- error: 'UIViewController' is unavailable in watchOS
35 | delay = detectionDelay
36 | self.callback = callback
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
| `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/LeakedViewControllerDetector/LeakedViewControllerDetector.swift:41:19: error: 'UIApplication' is unavailable in watchOS
39 | self,
40 | selector: #selector(toBackground),
41 | name: UIApplication.didEnterBackgroundNotification,
| `- error: 'UIApplication' is unavailable in watchOS
42 | object: nil
43 | )
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:85:12: note: 'UIApplication' has been explicitly marked unavailable here
83 |
84 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
85 | @interface UIApplication : UIResponder
| `- note: 'UIApplication' has been explicitly marked unavailable here
86 |
87 | @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-26 23:32:01.327 xcodebuild[782:4655] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64_32 (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ LeakedViewControllerDetector (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
SwiftCompile normal arm64 (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
SwiftEmitModule normal arm64 Emitting\ module\ for\ LeakedViewControllerDetector (in target 'LeakedViewControllerDetector' from project 'LeakedViewControllerDetector')
Building workspace LeakedViewControllerDetector with scheme LeakedViewControllerDetector
(5 failures)
BUILD FAILURE 6.4 watchOS