xcode iOS 9 键盘问题:-endDisablingInterfaceAutorotationAnimated 调用时没有匹配 -beginDisablingInterfaceAutorotation

xcode iOS 9 Keyboard Issue: -endDisablingInterfaceAutorotationAnimated called without matching -beginDisablingInterfaceAutorotation

我的旧项目在使用 iOS 9 键盘时出现问题。通过 Cocoapods 安装我开发的库后,我在尝试使用键盘时在模拟器上出现此错误。

-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UIRemoteKeyboardWindow: 0x78f0ff60; frame = (0 0; 1024 768); opaque = NO; autoresize = W+H; layer = <UIWindowLayer: 0x78f10240>> without matching -beginDisablingInterfaceAutorotation. Ignoring.

键盘行为:

为什么会这样?

尝试重新安装 Xcode,因为应用程序可能会以某种方式损坏,如果不起作用,也请尝试删除其库文件(~/library/application support/xcode 和 ~/library/containers/xcode) 因为它们也可能是腐败的。希望这对您有所帮助!