0
我遇到了與iCloud相關的iPod Touch ios v4.3.1崩潰。iCloud的iCloud通知崩潰<5
崩潰日誌:
Date/Time: 2012-06-12 11:42:43.557 -0700 OS Version: iPhone OS 4.3.1 (8G4) Report Version: 104 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x00000001, 0xe7ffdefe Crashed Thread: 0 Dyld Error Message: Symbol not found: _NSUbiquitousKeyValueStoreDidChangeExternallyNotification Referenced from: /var/mobile/Applications/997BA11D-FD1E-4755-860C-2A708D5E39EF/AppName.app/AppName Expected in: /System/Library/Frameworks/Foundation.framework/Foundation in /var/mobile/Applications/997BA11D-FD1E-4755-860C-2A708D5E39EF/AppName.app/AppName Dyld Version: 191.3
但代碼不應該被註冊爲任何的iCloud服務。我有以下代碼到位,我已經通過它加強確保此設備上,它從來沒有註冊觀測iCloud的通知:
if(NSClassFromString(@"NSUbiquitousKeyValueStore")) { // is iOS 5? if([NSUbiquitousKeyValueStore defaultStore]) { // is iCloud enabled [self addObservers]; } }
謝謝!