前手放留隻 app 走咗, 依家要執手尾, 可以 build 到, 但一 run 就死, 係實機 iphone8 測試,
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
停咗係上面 bold 咗果句...
error msg:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 7 beyond bounds for empty NSArray'
*** First throw call stack:
(0x181e3ad8c 0x180ff45ec 0x181d96448 0x10029aa24 0x18ba49dbc 0x18ba491c4 0x18ba165e0 0x18c046b1c 0x18ba15dd0 0x18ba15c6c 0x18ba14afc 0x18c6aa84c 0x18ba141ec 0x18c48fac8 0x18c5ddbf8 0x18ba13c0c 0x18ba135a8 0x18ba105e0 0x18ba10330 0x18463c470 0x184644d6c 0x10077d19c 0x1007897cc 0x184670878 0x18467051c 0x184670ab8 0x181de3404 0x181de2c2c 0x181de079c 0x181d00da8 0x183ce6020 0x18bd20758 0x10029a0c8 0x181791fc0)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
有冇 xcode 高手師兄幫幫手, 萬分感謝!!! |