前提・実現したいこと
ここに質問の内容を詳しく書いてください。
instagramのようなタイムラインを作って起動したらSIGABRT Error が出ました。
今まではちゃんと起動できてたので、いまつくったところを見本と見直しても違いがわかりませんでした。
どこをどう直せば良いでしょうか、
よろしくお願いします。
発生している問題・エラーメッセージ
エラー内容
2019-08-06 00:43:06.490194+0900 instaSample[9538:264285] [framework] CUIThemeStore: No theme registered with id=0
2019-08-06 00:43:06.635873+0900 instaSample[9538:264285] *** Assertion failure in -[UITableView _dequeueReusableViewOfType:withIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3698.140/UITableView.m:8011
2019-08-06 00:43:06.656746+0900 instaSample[9538:264285] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'invalid nib registered for identifier (Cell) - nib must contain exactly one top level object which must be a UITableViewCell instance'
*** First throw call stack:
(
0 CoreFoundation 0x00000001030678db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010260aac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000103067662 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010160376b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x000000010d68bfeb -[UITableView _dequeueReusableViewOfType:withIdentifier:] + 1330
5 instaSample 0x000000010071a73f $s11instaSample14ViewControllerC05tableC0_12cellForRowAtSo07UITableC4CellCSo0jC0C_10Foundation9IndexPathVtF + 207
6 instaSample 0x000000010071aa1b $s11instaSample14ViewControllerC05tableC0_12cellForRowAtSo07UITableC4CellCSo0jC0C_10Foundation9IndexPathVtFTo + 155
7 UIKitCore 0x000000010d6a6f60 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 764
8 UIKitCore 0x000000010d6a7499 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 73
9 UIKitCore 0x000000010d66f654 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2870
10 UIKitCore 0x000000010d68f76b -[UITableView layoutSubviews] + 165
11 UIKitCore 0x000000010d949e69 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1417
12 QuartzCore 0x00000001023b9d22 -[CALayer layoutSublayers] + 173
13 QuartzCore 0x00000001023be9fc _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 396
14 QuartzCore 0x00000001023cad58 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 72
15 QuartzCore 0x000000010233a24a _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 328
16 QuartzCore 0x0000000102371606 _ZN2CA11Transaction6commitEv + 610
17 UIKitCore 0x000000010d4842c3 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 128
18 CoreFoundation 0x0000000102fcecbc CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
19 CoreFoundation 0x0000000102fce480 __CFRunLoopDoBlocks + 336
20 CoreFoundation 0x0000000102fc8d04 __CFRunLoopRun + 1252
21 CoreFoundation 0x0000000102fc84d2 CFRunLoopRunSpecific + 626
22 GraphicsServices 0x00000001097e02fe GSEventRunModal + 65
23 UIKitCore 0x000000010d46afc2 UIApplicationMain + 140
24 instaSample 0x000000010071c8eb main + 75
25 libdyld.dylib 0x000000010542f541 start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
### 該当のソースコード import UIKit class ViewController: UIViewController, UITableViewDataSource,UITableViewDelegate { @IBOutlet var timelineTableView : UITableView! override func viewDidLoad() { super.viewDidLoad() timelineTableView.dataSource = self timelineTableView.delegate = self let nib = UINib(nibName: "TiimelineTableViewCell", bundle: Bundle.main) timelineTableView.register(nib, forCellReuseIdentifier: "Cell") timelineTableView.tableFooterView = UIView() } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 10 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Cell") as! TiimelineTableViewCell //内容 cell.userNameLabel.text = "サンプル" return cell } } ### 試したこと ここに問題に対して試したことを記載してください。 ### 補足情報(FW/ツールのバージョンなど) ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/05 21:35