Uncaught NSException Error

BASIC SDK для Xcode
User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 3:17 am

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)
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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
Mr. Kibernetik
Site Admin
Posts: 4610
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPad, iPhone, MacBook
Location: Russia
Flag: Russia

Re: Uncaught NSException Error

Post by Mr. Kibernetik » Mon Mar 12, 2018 7:55 am

Do you get the same exception when running this program as an application on your device?

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Re: Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 4:03 pm

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?
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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Re: Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 5:20 pm

One other thing - main.m pops up when the error occurs, so I think that is where the error is coming from.

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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
Mr. Kibernetik
Site Admin
Posts: 4610
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPad, iPhone, MacBook
Location: Russia
Flag: Russia

Re: Uncaught NSException Error

Post by Mr. Kibernetik » Mon Mar 12, 2018 6:01 pm

If application runs fine then it can be a Simulator problem...

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Re: Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 6:14 pm

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?
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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
Mr. Kibernetik
Site Admin
Posts: 4610
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPad, iPhone, MacBook
Location: Russia
Flag: Russia

Re: Uncaught NSException Error

Post by Mr. Kibernetik » 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.

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Re: Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 7:31 pm

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.
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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

User avatar
Mr. Kibernetik
Site Admin
Posts: 4610
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPad, iPhone, MacBook
Location: Russia
Flag: Russia

Re: Uncaught NSException Error

Post by Mr. Kibernetik » 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?

User avatar
GeorgeMcGinn
Posts: 495
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Location: Venice, FL
Flag: United States of America
Contact:

Re: Uncaught NSException Error

Post by GeorgeMcGinn » Mon Mar 12, 2018 7:41 pm

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?
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)
https://www.georgemcginn.com
https://www.cosmologyandspace.blog

Post Reply