I have just upgraded from Xcode 6 Beta 3 to Xcode 6 Beta 6. In Beta 3, everything worked fine and compiled like I wanted it to.
Right now, I cannot get CLLocationManagerDelegate to work, i.e. I always get the Use of undeclared type 'CLLocationManagerDelegate' - error message.
This is what my file looks like:
import UIKit
import CoreLocation
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, CLLocationManagerDelegate {
Additional info:
Any ideas? I'm assuming something is not linked properly here.
Try to clean your build directory:
Product-->Clean
Product-->(Alt key) Clean Build Folder
Delete your derived data:
Window-->Organizer-->delete derived data
Another possible reason for the 'use of undeclared type' error is that your class is also within your test target, but the 'undeclared type' is not.
This was a bug in XCode. Was solved in Beta7/Xcode6.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With