Xcode10.1与Cordova项目,IOS12,输入框遮挡解决(一)

Xcode9.4.1版本升级到Xcode10.1时,很顺利的下进行,但是项目中需要输入框的部分出现问题,在输入时IOS手机的键盘遮挡输入框问题,经过百度搜索,google搜索终于找到解决方法,方法有几种。

下面时出现的错误:

 Can't find keyplane that supports type 5 for keyboard iPhone-PortraitChoco-PhonePad; using 20698_PortraitChoco_iPhone-Complex-Pad_Def

API error: <_UIKBCompatInputView: 0x7f92a9d50be0; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric
2019-03-03 09:36:20.541984-0500 HelloCordova[86860:8842449] API error: <_UIKBCompatInputView: 0x7f92a9d50be0; frame = (0 0; 0 0); layer = > returned 0 width, assuming UIViewNoIntrinsicMetric
2019-03-03 09:36:20.567101-0500 HelloCordova[86860:8842449] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "",
    "",
    "",
    "",
    "=8)-|   (active, names: '|':_UIButtonBarButton:0x7f92a9d5fe10 )>",
    "=5)-[_UIModernBarButton:0x7f92a9d60800]   (active, names: '|':_UIButtonBarButton:0x7f92a9d605b0 )>",
    "=5)-|   (active, names: '|':_UIButtonBarButton:0x7f92a9d605b0 )>",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
)

Will attempt to recover by breaking constraint 
=8)-|   (active, names: '|':_UIButtonBarButton:0x7f92a9d5fe10 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.
2019-03-03 09:36:20.568777-0500 HelloCordova[86860:8842449] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "",
    "",
    "",
    "=5)-[_UIModernBarButton:0x7f92a9d60800]   (active, names: '|':_UIButtonBarButton:0x7f92a9d605b0 )>",
    "=5)-|   (active, names: '|':_UIButtonBarButton:0x7f92a9d605b0 )>",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
)

Will attempt to recover by breaking constraint 
=5)-|   (active, names: '|':_UIButtonBarButton:0x7f92a9d605b0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.
2019-03-03 09:36:20.570157-0500 HelloCordova[86860:8842449] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""
)

Will attempt to recover by breaking constraint 


Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.

解决方法几种:
①Cordova命令安装键盘插件cordova-plugin-keyboard
②Cordova命令安装webview插件 cordova-plugin-ionic-webview
③Cordova命令安装cordova-plugin-inappbrowser
网上几种方法,我的问题使用上面方法②解决。

你可能感兴趣的:(Cordova)