I just updated my Xcode to 6.3.1 The problem is my Facebook integration suddenly generate weird errors. Before this (Swift 1.1 and Xcode 6.2) no issue at all.
Error message 1
/Users/MNurdin/Documents/iOS/xxxxx/AppDelegate.swift:33:41: Cannot invoke 'handleOpenURL' with an argument list of type '(NSURL, sourceApplication: NSString?)'
Error message 2
/Users/MNurdin/Documents/iOS/xxxxx/AppDelegate.swift:32:10: Objective-C method 'application:openURL:sourceApplication:annotation:' provided by method 'application(:openURL:sourceApplication:annotation:)' conflicts with optional requirement method 'application(:openURL:sourceApplication:annotation:)' in protocol 'UIApplicationDelegate'
My code
func application(application: UIApplication, openURL url: NSURL, sourceApplication: NSString?, annotation: AnyObject) -> Bool { //error message 1 here
var wasHandled:Bool = FBAppCall.handleOpenURL(url, sourceApplication: sourceApplication) //error message 2 here
return wasHandled
}