最佳答案
UIDevice 在 Apple Watch 上不可用。 https://developer.apple.com/documentation/uikit/uidevice
请检查:https://developer.apple.com/forums/thread/25529
有WKInterfaceDevice
适用于 watch 。
关于ios - 在范围内找不到 'UIDevice',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72937462/