Error: libc abi.dylib: terminating with uncaught exception of type NSException in Xcode Swift Playground

I am working on a swift playground but when I click a button or do any other action an error in the console comes which says:


libc++abi.dylib: terminating with uncaught exception of type NSException


I am also able to see iOS 11 wallpaper in the live view and nothing works well like the keyboard becomes magnified and improper. What should I do?


Please help ASAP....

This can happen when such thing is programs when it is not possible for the Swift Playground. Swift Playground would not show that what caused the uncaught terminating exception or a type of SIGABRT. For example, if I position a button at as:

var button = CGRect(x: 400, y:400, width:30, height: 30)

and the view in which I place it will be only 300x300 and it would definitely cause an error. See if there's something which is impossible in your code.

Error: libc abi.dylib: terminating with uncaught exception of type NSException in Xcode Swift Playground
 
 
Q