iPadOS 26.x floating numeric keyboard crash may be related to default AutoToolbar and _UIRemoteKeyboardPlaceholderView
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- swift
- 領域
- mobile-dev
調査の方向性
No source file, test, or reproducible demo is identified. Begin by investigating the AutoToolbar state during the reported phone-pad-to-verification-field transition on iPadOS 26.x, using the UIKit constraint exception and supplied stack trace as the starting evidence. Done means the intermittent crash is reproduced and its relationship to IQKeyboardManager is established or ruled out.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
We observed an intermittent crash on iPadOS 26.x when using IQKeyboardManager 6.5.19 with numeric/phone input fields.
The crash happens while switching from a phone number field to a verification code field. The exception is thrown by UIKit constraint activation:
NSGenericException
Unable to activate constraint with anchors <UIView.top> and <_UIRemoteKeyboardPlaceholderView.bottom> because they have no common ancestor.
This seems related to the iPad floating numeric keyboard / keyboard placeholder view. In one user video, the keyboard was partially dismissed while the IQKeyboardManager toolbar was still visible. If the user tapped the toolbar Done button first, the login flow could continue normally.
We cannot prove IQKeyboardManager is the root cause, but the issue appears to be triggered or amplified when IQKeyboardManager's AutoToolbar is involved.
To Reproduce
The issue is intermittent and we have not been able to reproduce it consistently on our own devices.
Observed user flow:
- Open a login/register screen on iPad.
- Tap a phone number text field using
UIKeyboardTypePhonePad/ numeric keyboard. - Tap "Send verification code".
- Tap the verification code input field.
- App crashes with the UIKit constraint exception.
Observed condition:
- iPad floating numeric keyboard is involved.
- IQKeyboardManager AutoToolbar may remain visible while the keyboard is partially dismissed.
- Tapping the IQKeyboardManager toolbar Done button before continuing avoids the crash in the user video.
Expected behavior
Switching between numeric text fields should not crash. IQKeyboardManager should not leave UIKit keyboard placeholder/toolbar state in a hierarchy that can trigger a constraint activation exception.
Screenshots
We can provide crash screenshots/log screenshots if needed.
Demo Project
No minimal demo project yet. The issue is intermittent and currently only reproduced in production user reports.
Versions
Xcode: 26.3
iOS/iPadOS: iPadOS 26.3 / 26.5
Device: iPad mini 6th generation, iPad models on iPadOS 26.x
Library Version: IQKeyboardManager 6.5.19
Additional context
Crash signature:
#44002 NSGenericException
Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x14e27cd40 "UIView:0x14e34ddc0.top"> and <NSLayoutYAxisAnchor:0x14eda0440 "_UIRemoteKeyboardPlaceholderView:0x14ed7ca00.bottom"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.
CoreFoundation __exceptionPreprocess
0 CoreFoundation
__exceptionPreprocess + 164
1 libobjc.A.dylib
objc_exception_throw + 88
2 CoreAutoLayout
0x00000001e726a000 + 9896
3 CoreAutoLayout
0x00000001e726a000 + 38376
4 CoreAutoLayout
0x00000001e726a000 + 14924
5 CoreAutoLayout
0x00000001e726a000 + 35908
6 UIKitCore
-[UIInputWindowControllerHostingItem updateViewConstraints] + 8268
7 UIKitCore
-[UIInputWindowController updateSupportsDockViewController] + 300
8 UIKitCore
-[UIKeyboardImpl didMoveToWindow] + 140
9 UIKitCore
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 1936
10 UIKitCore
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 716
11 UIKitCore
-[UIView(Internal) _didMoveFromWindow:toWindow:] + 716
12 UIKitCore
__45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 132
13 CoreAutoLayout
0x00000001e726a000 + 14924
14 UIKitCore
-[UIView _postMovedFromSuperview:] + 528
15 UIKitCore
-[UIView(Internal) _addSubview:positioned:relativeTo:] + 2324
16 UIKitCore
-[UIInputWindowControllerHostingItem setInputView:] + 176
17 UIKitCore
-[UIInputWindowControllerHosting setInputSetView:forType:] + 260
18 UIKitCore
-[UIInputWindowController changeToInputViewSet:] + 976
19 UIKitCore
__43-[UIInputWindowController setInputViewSet:]_block_invoke + 44
- 主要言語
- Swift
- スター
- 16.6k
- フォーク
- 2.4k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackiftekhar/IQKeyboardManager のほかの issue
-
Xcode 27 Updateオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hackiftekhar/IQKeyboardManager#2184 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
hackiftekhar/IQKeyboardManager#2182 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
hackiftekhar/IQKeyboardManager#2180 · コメント 1 件 ·
-
UI Optimizationオープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
hackiftekhar/IQKeyboardManager#2178 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
hackiftekhar/IQKeyboardManager#2165 · コメント 2 件 ·
hackiftekhar/IQKeyboardManager の issue をすべて見る
似ている issue
-
Native HTTP policy fixture rejects its pathless response URL対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug fixed (pending release)
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
vorssaint/vorssaint-utils#2810 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Notion AI: getSpaces response exceeds 5 MB plugin limit for multi-workspace accounts対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
steipete/CodexBar#4341 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
kiosk_set_screensaver_mode ignored: mode is not passed through by the notification parser対応中かも @bgoncal が今日担当しました。 オープンbug ios
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
home-assistant/iOS#6001 ·
メンテナーはふだん 1 日以内に返信