When building my existing project after opening, I get error in AppDelegate.swift file, why?

This is the first time I am opening a project up that was already made. I had trouble at first with the story board where it said no editor. But I manually added those files and they appeared to be working. However, when I build it I get an error in the AppDelegate.swift file on the line with : "class AppDelegate: UIResponder, UIApplicationDelegate { <"Thread 1: signal SIGABRT">


IM USING Version 8.2.1 (8C1002)



This pops up at the bottom:


2018-03-22 12:46:16.223 22[23844:288943] *** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.6.21/UICollectionView.m:4971

2018-03-22 12:46:16.227 22[23844:288943] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier Calendar - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'

*** First throw call stack:

(

0 CoreFoundation 0x0000000104538d4b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x000000010184b21e objc_exception_throw + 48

2 CoreFoundation 0x000000010453ce42 +[NSException raise:format:arguments:] + 98

3 Foundation 0x00000001013e066d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195

4 UIKit 0x000000010266d44c -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 2176

5 UIKit 0x000000010266d8ea -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 169

6 22 0x000000010125d9c0 _TFC2_214ViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 192

7 22 0x000000010125fe17 _TToFC2_214ViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 87

8 UIKit 0x000000010265875f -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 467

9 UIKit 0x0000000102658586 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 35

10 UIKit 0x000000010265da5e -[UICollectionView _updateVisibleCellsNow:] + 4803

11 UIKit 0x0000000102663725 -[UICollectionView layoutSubviews] + 313

12 UIKit 0x0000000101ddfab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237

13 QuartzCore 0x0000000107378bf8 -[CALayer layoutSublayers] + 146

14 QuartzCore 0x000000010736c440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366

15 QuartzCore 0x000000010736c2be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24

16 QuartzCore 0x00000001072fa318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280

17 QuartzCore 0x00000001073273ff _ZN2CA11Transaction6commitEv + 475

18 QuartzCore 0x0000000107327d6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113

19 CoreFoundation 0x00000001044dd267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23

20 CoreFoundation 0x00000001044dd1d7 __CFRunLoopDoObservers + 391

21 CoreFoundation 0x00000001044c18a6 CFRunLoopRunSpecific + 454

22 UIKit 0x0000000101d14aea -[UIApplication _run] + 434

23 UIKit 0x0000000101d1ac68 UIApplicationMain + 159

24 22 0x0000000101261eff main + 111

25 libdyld.dylib 0x00000001054e868d start + 1

26 ??? 0x0000000000000001 0x0 + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb)

When building my existing project after opening, I get error in AppDelegate.swift file, why?
 
 
Q