Uncaught NSException Error
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Uncaught NSException Error
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)
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)
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Uncaught NSException Error
Do you get the same exception when running this program as an application on your device?
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Uncaught NSException Error
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.
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 amDo you get the same exception when running this program as an application on your device?
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Uncaught NSException Error
One other thing - main.m pops up when the error occurs, so I think that is where the error is coming from.
George.
George.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Uncaught NSException Error
If application runs fine then it can be a Simulator problem...
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Uncaught NSException Error
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?
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?
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Uncaught NSException Error
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.
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Uncaught NSException Error
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.
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 pmIf 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.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Uncaught NSException Error
So, I will repeat the question:
Do you get the same exception when running this program as an application on your device?
Do you get the same exception when running this program as an application on your device?
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Uncaught NSException Error
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.
I can't get it out of XCODE! No Application has been created.
George.
Mr. Kibernetik wrote: ↑Mon Mar 12, 2018 7:33 pmSo, I will repeat the question:
Do you get the same exception when running this program as an application on your device?
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)