This content originally appeared on CodeSource.io and was authored by Deven
In this article, you will learn few ways to solve terminating with uncaught exception of type nsexception error in Swift.
One of the common causes of this error is IOS pasting the file into the directory that doesn’t automatically add to the iOS project.
To fix this issue you need to manually add it In the Xcode by following the steps below:
- Right-click on your project
- Click “Add files to ‘project name'”
- Select the .plist file
- Click ok
If the above method doesn’t fix your issue you can try the following Printing the exception stack to know the reason for the exception to do so follow the steps below:
- Go to show breakpoint navigator.
- Add (+) Add Exception Breakpoint.
- Select the new breakpoint, Control-Click, Edit Breakpoint.
- Add Action and Enter: po $arg1
You can also try Other steps to fix this issue:
- Enable OS_ACTIVITY_MODE in the schemes if you have disabled it.
- If you have renamed any action You need to delete the old name.
- you can try turning off OS_ACTIVITY_MODE variable
The post How to solve terminating with uncaught exception of type nsexception appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Deven

Deven | Sciencx (2021-03-24T13:14:30+00:00) How to solve terminating with uncaught exception of type nsexception. Retrieved from https://www.scien.cx/2021/03/24/how-to-solve-terminating-with-uncaught-exception-of-type-nsexception/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.