Page 1 of 2
Uncaught NSException Error
Posted: Mon Mar 12, 2018 3:17 am
by GeorgeMcGinn
Mr. K
I am testing my DateCalc program in Xcode and it builds successfully, but when the simulator screen displays, it gets an "Uncaught Exception" error and does not run.
I downloaded today the most recent SDK, so I am running with the current version.
I am running this test as iOS 10.2, Xcode 8.2, iPad Air 2. I also rebuilt my File Compare, which worked fine.
Thanks,George.
Log messages below:
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 CoreFoundation 0x000000010bb4098c __CFRunLoopDoSources0 + 556
17 CoreFoundation 0x000000010bb3fe76 __CFRunLoopRun + 918
18 CoreFoundation 0x000000010bb3f884 CFRunLoopRunSpecific + 420
19 UIKit 0x0000000109dc6aea -[UIApplication _run] + 434
20 UIKit 0x0000000109dccc68 UIApplicationMain + 159
21 Application 0x0000000106b0fe7f main + 111
22 libdyld.dylib 0x000000010c15468d start + 1
23 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 7:55 am
by Mr. Kibernetik
Do you get the same exception when running this program as an application on your device?
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 4:03 pm
by GeorgeMcGinn
No, it runs fine.
I figured that maybe because I am running it on an iPad Pro (my device) I reran the simulator with the two iPad Pro's it had, and I got the same error. So it isn't device specific.
It is the DateCalc v2 code in the forum here.
George.
Mr. Kibernetik wrote: ↑Mon Mar 12, 2018 7:55 am
Do you get the same exception when running this program as an application on your device?
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 5:20 pm
by GeorgeMcGinn
One other thing - main.m pops up when the error occurs, so I think that is where the error is coming from.
George.
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 6:01 pm
by Mr. Kibernetik
If application runs fine then it can be a Simulator problem...
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 6:14 pm
by GeorgeMcGinn
I thought that, but:
1. I ran it with iPad Air, iPad Air 2, iPad Pro 9.5 and 12.5 and it gets the same error
2. I ran FileCompare, similar in coding, and it does not get this error.
I have ruled out coding in that DateCalc was written in the same way FileCompare (written by the same two programmers) and testing all the simulations should have found one that works, yet what works for one does not work the other, which rules out simulator.
Both ran with Xcode 8.2 and iOS 10.2 set in the project, and I verified all the settings in Xcode are the same (with program name being the difference and the source code, while similar, does something different.
DateCalc does you sliders which FileCompare does not.
Could it be a LibSB issue?
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 7:18 pm
by Mr. Kibernetik
If you install your program as an application on your device and it runs Ok, but on Simulator it fails to run, then it can be the Simulator bug.
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 7:31 pm
by GeorgeMcGinn
My program was never an application.
It runs in the IDE, but when I try to create a Xcode project, it fails. It has never ran as anything outside of the IDE.
Mr. Kibernetik wrote: ↑Mon Mar 12, 2018 7:18 pm
If you install your program as an application on your device and it runs Ok, but on Simulator it fails to run, then it can be the Simulator bug.
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 7:33 pm
by Mr. Kibernetik
So, I will repeat the question:
Do you get the same exception when running this program as an application on your device?
Re: Uncaught NSException Error
Posted: Mon Mar 12, 2018 7:41 pm
by GeorgeMcGinn
I need you to define "application" as it runs inSb IDE, but has never been created as an App by Xcode.
I can't get it out of XCODE! No Application has been created.
George.
Mr. Kibernetik wrote: ↑Mon Mar 12, 2018 7:33 pm
So, I will repeat the question:
Do you get the same exception when running this program as an application on your device?