Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“NSInternalInconsistencyException”,原因:“无法在iOS 11之前的设备上解码特殊类型“14”_Ios_Swift_Uikit - Fatal编程技术网

“NSInternalInconsistencyException”,原因:“无法在iOS 11之前的设备上解码特殊类型“14”

“NSInternalInconsistencyException”,原因:“无法在iOS 11之前的设备上解码特殊类型“14”,ios,swift,uikit,Ios,Swift,Uikit,我的一个屏幕发生故障,这是使用xib文件启动的。事故日志很忙碌,实际上没有指出什么是罪魁祸首。在iOS 11和iOS 12上,一切工作都很顺利。我在网上搜索过,因为互联网冲突例外很常见,但没有找到与我相同的原因 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'cannot decode special type '14'' *** First throw call sta

我的一个屏幕发生故障,这是使用xib文件启动的。事故日志很忙碌,实际上没有指出什么是罪魁祸首。在iOS 11和iOS 12上,一切工作都很顺利。我在网上搜索过,因为互联网冲突例外很常见,但没有找到与我相同的原因

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'cannot decode special type '14''
*** First throw call stack:
(
0   CoreFoundation                      0x04faa494 __exceptionPreprocess + 180
1   libobjc.A.dylib                     0x04772e02 objc_exception_throw + 50
2   CoreFoundation                      0x04faa3bd +[NSException raise:format:] + 141
3   Foundation                          0x01f62945 newDecodedValue + 497
4   Foundation                          0x01f65ce4 -[NSPlaceholderValue initWithCoder:] + 32
5   UIKit                               0x0379949d UINibDecoderDecodeObjectForValue + 739
6   UIKit                               0x037991b2 -[UINibDecoder decodeObjectForKey:] + 320
7   UIKit                               0x034bb719 -[_UIAttributeTraitStorageRecord initWithCoder:] + 157
8   UIKit                               0x0379949d UINibDecoderDecodeObjectForValue + 739
9   UIKit                               0x037996ae UINibDecoderDecodeObjectForValue + 1268
10  UIKit                               0x037991b2 -[UINibDecoder decodeObjectForKey:] + 320
11  UIKit                               0x034ba383 -[_UITraitStorage initWithCoder:] + 227
12  UIKit                               0x0379949d UINibDecoderDecodeObjectForValue + 739
13  UIKit                               0x037996ae UINibDecoderDecodeObjectForValue + 1268
14  UIKit                               0x037991b2 -[UINibDecoder decodeObjectForKey:] + 320
15  UIKit                               0x034b9fdd -[_UITraitStorageList initWithCoder:] + 174
16  UIKit                               0x0379949d UINibDecoderDecodeObjectForValue + 739
17  UIKit                               0x037996ae UINibDecoderDecodeObjectForValue + 1268
18  UIKit                               0x037991b2 -[UINibDecoder decodeObjectForKey:] + 320
19  UIKit                               0x03585f21 -[UINib instantiateWithOwner:options:] + 1627
20  UIKit                               0x03312380 -[UIViewController _loadViewFromNibNamed:bundle:] + 429

事实证明,iOS 11之前的设备不支持使用语言定向边距。将其替换为Xib中的标准边距,并解决带有原因的错误:无法解码特殊类型“14”