実機 (iOS 11.3) でアプリ起動時にクラッシュするのですが、原因が分からず困っています。
(シミュレーターではクラッシュしませんでした。)
クラッシュログの Backtrace に [UIStoryboard storyboardWithName:bundle:] とあるので、
おそらく StoryBoard の読み込みでクラッシュしているのだと思うのですが、
StoryBoard のコネクションをチェックしても問題が見つかりませんでした。
( libc++abi.dylib: terminating with uncaught exception of type NSExceptionエラーについてです。 も参考にしました。)
Last Exception Backtrace:
0 CoreFoundation 0x1837e2d8c __exceptionPreprocess + 228
1 libobjc.A.dylib 0x18299c5ec objc_exception_throw + 55
2 UIKit 0x18dd31728 +[UIStoryboard storyboardWithName:bundle:] + 783
また NSSetUncaughtExceptionHandler で callStackSymbols しても、何も出力されませんでした。
Swift
1 func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 2 NSSetUncaughtExceptionHandler { exception in print(exception.callStackSymbols) } 3 return true 4 } 5 6 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 7 NSSetUncaughtExceptionHandler { exception in print(exception.callStackSymbols) } 8 return true 9 }
他に何かクラッシュの原因を探る方法はありますでしょうか?
何卒よろしくお願いします。
開発環境: Xcode 9.3
開発言語: Swift 4
実行環境: iOS 11.3 (実機)
あなたの回答
tips
プレビュー