2014-12-23 5 views
0

Xcode 6.0.1에 오류가 발생하여 "SourceKitService Crashed Crashlog generated in ~/Library/Logs/DiagnosticReports" 오류가 나타나기 시작했으며 모든 구문 강조 표시가 Swift에서 사라졌습니다. 그런 다음 Apple에서 새 업데이트 을 릴리스했습니다.이 문제가 언급 된 Xcode 6.1.1이 해결되었습니다. 따라서 Xcode를 6.1.1로 업데이트했지만이 문제는 여전히 존재합니다. 나는 문제가 단지 거기에 머물러 있고 결코 사라지지 않는다는 것이다. , DerivedData/ModuleCache 프로젝트 등을 정리하지만 문제는 여전히 존재 : SourceKitService가 Xcode 6.1.1에서 크래시가 발생했습니다.

enter image description here

나는의 내용 삭제 등의 StackOverflow의에서 발견 된 몇 가지 솔루션을 시도했다.

빌드 할 수 없으며이 2 가지 오류를 가져 오려고 할 때마다 빌드를 만들 수 없습니다. 여기

Segmentation fault: 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:. 
} 


} 
+1

6.1.1에는 소스 키트 서비스가 중단 될 수있는 많은 경우가 여전히 있습니다. App Store의 Xcode에 대한 리뷰 섹션을보십시오. 매일 여러 가지 충돌이 발생하지만 더 이상 구문 강조 표시를 제거하지 않습니다. – JeremyP

답변

0

I'am되지 않습니다 :

/Users/MY_PROJECT/AppDelegate.swift:11:1: 'UIApplicationMain' class must conform to the 'UIApplicationDelegate' 

내 AppDelegate.h 파일에 UIApplicationMain에서 프로토콜이 명령으로 인해 신호에 실패 이 오류의 원인에 대해 여러 가지 이유로이 소스 킷 충돌이 발생했습니다. UIApplicationDelegate 방법을 살펴보면 서명에서 약간 변경됩니다. 예 : UIApplication의 경우 매개 변수가 현재 선택 사항이 아닙니다.

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

당신은 당신이 오류를 없애 수있는 변경 사항을 (당신이 + 명령 경우 메소드 서명을 확인할 수 있습니다 클릭) 새로운 UIApplicationDelegate 방법과 대리자 방법을 비교 그래서 경우. 한 번 해봐.

+0

시도해보십시오. 작동하지 않습니다. –

관련 문제