Ios SourceKitService在Xcode 6.1.1中崩溃

Ios SourceKitService在Xcode 6.1.1中崩溃,ios,xcode,swift,ios8,xcode6,Ios,Xcode,Swift,Ios8,Xcode6,我开始在Xcode 6.0.1中遇到问题,在~/Library/Logs/DiagnosticReports中生成的错误SourceKitService崩溃Crashlog开始弹出,所有语法突出显示都在Swift中消失。然后,苹果发布了一个新的更新版本Xcode 6.1.1,其中提到的这个问题得到了解决。所以我将Xcode更新为6.1.1,但这个问题仍然存在。我认为我的问题只是停留在那里,永远不会消失 我尝试了StackOverflow中的一些解决方案,如删除:DerivedData/Modul

我开始在Xcode 6.0.1中遇到问题,在~/Library/Logs/DiagnosticReports中生成的错误SourceKitService崩溃Crashlog开始弹出,所有语法突出显示都在Swift中消失。然后,苹果发布了一个新的更新版本Xcode 6.1.1,其中提到的这个问题得到了解决。所以我将Xcode更新为6.1.1,但这个问题仍然存在。我认为我的问题只是停留在那里,永远不会消失

我尝试了StackOverflow中的一些解决方案,如删除:DerivedData/ModuleCache的内容、清理项目等,但问题仍然存在

我无法进行构建,每当我试图得到这两个错误时

/Users/MY_PROJECT/AppDelegate.swift:11:1: 'UIApplicationMain' class must conform to the 'UIApplicationDelegate'
我的AppDelegate.h文件中UIApplicationMain的协议,由于信号:分段错误:11,此命令失败

这是我的AppDelegate.swift的代码

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
    return true
}

func applicationWillResignActive(application: UIApplication!) {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(application: UIApplication!) {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(application: UIApplication!) {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(application: UIApplication!) {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(application: UIApplication!) {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


}

我不确定这个错误的原因,我得到这个sourcekit崩溃的原因有很多。对于您来说,如果您研究UIApplicationLegate方法,它们在签名中会略有更改。对于UIEG,应用程序参数现在不是可选的

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        return true
    }

因此,如果您将委托方法与新的UIApplicationLegate方法进行比较,如果您使用command+click,则可以检查方法签名并进行更改,您可以消除此错误。试试看

在6.1.1中,仍然存在许多源套件服务可能崩溃的情况。看看应用商店中Xcode的回顾部分。我每天都会看到一些这样的崩溃,但它们通常不再突出显示语法。