I've got Xcode 7.2 on a MacBook Air.
I'll directly show you the problem
My Problem:
in ViewController.swift:
let appdelegate : AppDelegate = UIApplication.sharedApplication().delegate as? AppDelegate
This line is giving me an error: Use of undeclared type 'AppDelegate'
In my AppDelegate.swift, the UIApplicationDelegate is named as "AppDelegate":
class AppDelegate: UIResponder, UIApplicationDelegate{
Still why does it show me this error.
This is just an example in this view controller. this same problem occurs in one more class (or file), BUT not in all classes (or files)
Solutions I've tried:
- restarting, reinstalling Xcode.
- rebooting my mac.
- Deleting 'DerivedData' folder which is located in /Library/Developers/Xcode/.