Getting error while running App in Xcode and shows error like this
"terminating with uncaught exception of type NSException"
looking for your help
Related
I am trying to build the Pong example that is distributed with SFML. I am using the latest macOS.
The code compiles, however when I launch I get the following error:
pong[14920:316603] ***
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason:
'-[SFOpenGLView updateCursorGrabbed]: unrecognized selector sent to instance 0x7fa02948e890'
...
I am not familiar with Objective-C/C++, so I have the following questions:
What does this error mean?
How do I know what the valid NS arguments are?
Why is SFML trying to use invalid arguments; do I need to update?
I open my project(mac app) in xcode, i launch the simulator, everything works fine. If i enter some specific characters in a textfield, xcode crashes with the following report but the simulator keeps working.
I have uninstalled and installed xcode. i deleted the developer folder, nothing of these resolved the problem.
Any ideas why is this happening?
Crashed Thread: 0 Dispatch queue: appendConsoleItemLock
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
My app crashes on some iPhone 5S device (only some) with the error:
Fatal Exception: NSInternalInconsistencyException Unexpected error:
Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be
completed. (Cocoa error 4097.)" (connection to service named
com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0
{NSDebugDescription=connection to service named
com.apple.CoreAuthentication.daemon}
The line which breaks the app is the following:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
Is this an Apple bug?
What am I doing wrong here?
It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.
I start my project crashes immediately on ios7 , with the following error , but I can not understand how to solve .
2014-12-08 18:29:07.605 MyProject[1293:613] +[SKLabelNode nodeWithFileNamed:]: unrecognized selector sent to class 0x10c6273a0
2014-12-08 18:29:07.608 MyProject[1293:613] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[SKLabelNode nodeWithFileNamed:]: unrecognized selector sent to class 0x10c6273a0'
As you can see in the image bellow the method nodeWithFileNamed: is available in iOS 8.0 and above, this is why your app is crashing on a lower iOS version.
My app works fine on the iPhone simulator. However, when I launch the Android 2.2 simulator, the app loads (all the tabs appear) but then it crashes before my TableView appears. Here's the error:
E/TiJSError( 269): (main) [644,1030] ----- Titanium Javascript Runtime Error -----
E/TiJSError( 269): (main) [1,1031] - In ti:/titanium.js:178,19
E/TiJSError( 269): (main) [0,1031] - Message: Uncaught Error: Failed to load resource, Java exception was thrown.
E/TiJSError( 269): (main) [1,1032] - Source: source = assets.readAsset(assetPath);
E/V8Exception( 269): Exception occurred at ti:/titanium.js:178: Uncaught Error: Failed to load resource, Java exception was thrown.
Does this have anything to do with memory? How can I fix this?
Thanks!!
I had a similar problem, and it turned out to be a memory issue.
Try inserting the following line into tiapp.xml:
<property name="ti.android.threadstacksize" type="int">32768</property>
Then clean the Android build folder and run the app again. I hope it works for you!