Swift와 XCode 6로 응용 프로그램을 개발하고 있습니다. 어제는 XCode 6 베타 7과이 코드를 실행하기 전에 이미 실행 중이던 코드 일부를 충돌 시켰습니다. 잘못된 액세스 오류.Swift with XCode 6 베타 7은 레지스터 알림에 문제가 있습니다.
이var types: UIUserNotificationType = UIUserNotificationType.Sound | UIUserNotificationType.Alert | UIUserNotificationType.Sound
let settings = UIUserNotificationSettings(forTypes: types, categories: nil)
UIApplication.sharedApplication().registerUserNotificationSettings(settings)
UIApplication.sharedApplication().registerForRemoteNotifications()
크래쉬 라인 let settings = UIUserNotificationSettings(forTypes: types, categories: nil)
입니다 : 여기
EXC_BAD_ACCESS(code=1, address=0x20)
아무도 이것에 대해 생각하고 있습니까?
beta6에서 마이그레이션하셨습니까? –
어떤 마이그레이션 의미입니까? 나는 7.1 버전을 지원하기 위해 7.1 베타 버전으로 IOS 7.1 SDK를 복사했습니다. x32 버전의 마녀에서 이미이 설치 이전에 실행되고 있던 버전입니다. – Integer
코드를 실행 했습니까? –