次のようにクラッシュ情報は以下のとおりです。
***キャッチされない例外によりにアプリを終了
「NSInvalidUnarchiveOperationException」、
理由:「_UITextLayoutViewという名前のクラスが見つからなかったためにインスタンス化クラス_UITextLayoutViewの名前できませんでした。
クラス「は(クラスが正しいターゲットの一部であることを確認)ソースコードで定義された、またはライブラリからでリンクする必要があります
Aソリューション
ピットを避けるために、ハードコア手書きのスイッチのXIB部分図。
ソリューション2
Xcodeのポータルの他のバージョンのダウンロード
ソリューション3を
OC黒魔術ランタイム。
ファイルを作成しますUITextViewWorkaround
UITextViewWorkaround.h
#import <財団/ Foundation.h>
@interface UITextViewWorkaround:NSObjectの
+(無効)executeWorkaround。
@終わり
UITextViewWorkaround.m
#importを"UITextViewWorkaround.h"
の#import <にObjC / runtime.h>
@implementation UITextViewWorkaround
+(ボイド)executeWorkaround {
IF(IOSの13.2(@available、*)){
}
他{
CONSTチャー*クラス名= "_UITextLayoutView"。
クラスCLS = objc_getClass(クラス名)。
(CLS == NIL){もし
CLS = objc_allocateClassPair([UIViewクラス]、クラス名、0);
objc_registerClassPair(CLS)。
デバッグの#if
のprintf( "%sの追加動的\ n"は、クラス名)。
#endifの
}
}
}
@end
静的メソッドを使用します
#importを"UITextViewWorkaround.h"
(NSDictionaryの*)launchOptions {:(のUIApplication *)アプリケーションdidFinishLaunchingWithOptions:(BOOL)アプリケーション-
アプリケーションの起動後のカスタマイズ用//オーバーライドポイント。
【UITextViewWorkaround executeWorkaround]。
はい返します。
}
客観迅速なリリースを受け入れてください。
インポートのUIKit
@objc
クラスUITextViewWorkaround:NSObjectの{
executeWorkaround(FUNC静的){
#available場合(IOSの13.2、*){
}他{
クラス名= "_UITextLayoutView"させ
てみましょうするtheClass = objc_getClass(クラス名)
するtheClass ==ゼロ{場合
classPairをみましょう。 AnyClass?= objc_allocateClassPair(UIView.self、クラス名、0)
objc_registerClassPair(classPair!)
}
}
}
}