<< | Index | >>
Build succeeds. But Xcode returns "Uknown Error".
It caused only iPad (iOS7).
This is caused by access to invalid index of array object. (empty array)
2013-09-24 11:01:19.622 generika[10650:a0b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array' *** First throw call stack: ( 0 CoreFoundation 0x01ffaed4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x01ccc8b6 objc_exception_throw + 44 2 CoreFoundation 0x01faf302 -[__NSArrayI objectAtIndex:] + 210 3 generika 0x0000cb8e -[MasterViewController layoutReaderToolbar] + 654 4 generika 0x00009f1c -[MasterViewController didRotate:] + 92 5 Foundation 0x017888c9 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40 6 CoreFoundation 0x01fae94e _CFXNotificationPost + 2862 7 Foundation 0x016c2741 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98 8 UIKit 0x00a88030 -[UIDevice setOrientation:animated:] + 295 9 UIKit 0x0084a26d -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 2173 10 UIKit 0x0085d8fc -[UIApplication handleEvent:withNewEvent:] + 3447 11 UIKit 0x0085de69 -[UIApplication sendEvent:] + 85 12 UIKit 0x0084b9a5 _UIApplicationHandleEvent + 736 13 GraphicsServices 0x0358c34b _PurpleEventCallback + 776 14 GraphicsServices 0x0358be56 PurpleEventCallback + 46 ... ...
This was problem.
if (self.reader) { if (floor(NSFoundationVersionNumber) > kVersionNumber_iOS_6_1) { // iOS 7 or later if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // iPad // Fix "Cancel" Position for iOS 7 on iPad UIView *toolbarView = [self.reader.view.subviews objectAtIndex:1]; UIToolbar *toolbar = [toolbarView.subviews objectAtIndex:0]; UIView *buttonView = (UIView *)[toolbar.subviews objectAtIndex:2]; // UIToolbarTextButton UIView *button = (UIView *)[[buttonView subviews] objectAtIndex:0]; // UIToolbarNavigationButton UIInterfaceOrientation interfaceOrientation = [UIApplication sharedApplication].statusBarOrientation; if (UIInterfaceOrientationIsPortrait(interfaceOrientation)) { button.center = CGPointMake(30.0, 60.0); } else if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) { button.center = CGPointMake(30.0, 45.0); } ... ...
toolbarView.subviews
is empty.
Now I don't have any other iOS devices.
I could not check sync.
Continue after.
tried delete / install / on & off for iCloud sync.
Sometimes does not work expectedly.
This is alert for remains updates on iCloud.
checked:
iCloud
ON and "Documents & Data" (Settings) Enabled
iCloud
OFF and "Documents & Data" (Settings) Enabled
iCloud
ON and "Documents & Data" (Settings) Disabled
iCloud
OFF and "Documents & Data" (Settings) Disabled
iCloud
OFF and "Documents & Data" (Settings) Enabled
iCloud
ON and "Documents & Data" (Settings) Enabled
iCloud
OFF and "Documents & Data" (Settings) Disabled
iCloud
ON and "Documents & Data" (Settings) Disabled
continue tomorrow.