Exception Handling

RSS for tag

Monitor and debug exceptional conditions in code using Exception Handling.

Posts under Exception Handling tag

32 Posts

Post

Replies

Boosts

Views

Activity

What is an exception?
The word exception is highly overloaded, not just on Apple platforms but across the industry as a whole. From an Apple perspective there are 3 things that are commonly conflated under that term: Machine exceptions — These are raised by the hardware in response to problems detected by the hardware, for example, accessing invalid memory, executing an illegal instruction, and executing a trap instruction. Language exceptions — This includes Objective-C (@try, @catch, @throw) and C++ exceptions (try, throw, catch) Cocoa errors Catching machine exceptions is super hard and it only makes sense in very specific circumstances, for example, when you’re working on a language runtime. IMPORTANT Folks commonly try to catch machine exceptions as part of a custom crash reporter. I strongly recommend against doing that, for the reasons I outline in Implementing Your Own Crash Reporter - https://developer.apple.com/forums/thread/113742. The Exception Handling framework - https://developer.apple.com/documentation/exceptionhandling, which is the tag that I applied to this post (-:, lets you convert machine exceptions to language exceptions. This is dangerous nonsense and should never be used. The situation with language exceptions varies by language: In C++ it’s common to use language exceptions as part of your program. In Objective-C language exceptions are reserved for serious programming errors. Do not throw a language exception unless you want your program to crash. Do not attempt to catch a language exception and then recover from it. Doing so will not work reliably if you’re using ARC or if the language exception originated in the OS. Swift has no facilities for dealing with language exceptions. The exception-like mechanisms you see in Swift are actually syntactic sugar on the Cocoa error facilities (more on that below). In no situation is it safe to throw or catch a language exception across an ABI boundary. Note Historically some Cocoa APIs expected you to catch language exceptions. These APIs are now either deprecated (for example, Distributed Objects) or have been replaced by APIs that use the Cocoa error mechanism (for example, NSFileManager). The Cocoa error mechanism involves a function that returns a status result and can optionally return an NSError via an ‘out’ parameter. In Objective-C this is done using an NSError ** parameter. For example, to read an NSData from a file you use this NSData method: (nullable instancetype)dataWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; To see the error in Objective-C, call it like so: NSURL * url = … something …; NSError * error; NSData * data = [NSData dataWithContentsOfURL:url options:0 error:&error]; if (data == nil) { … look at `error` … } IMPORTANT Only look at error if the function result indicates that an error occurred. Swift has syntactic sugar to make this look like an exception mechanism. For example, in Swift you’d call it like so: let url: URL = … something … let data = try Data(contentsOf: url: options:[]) While this looks like an exception, it’s not. Rather, it’s a convenient way to handle the existing Cocoa error convention. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
4.6k
May ’21
Debugging Resources
General: DevForums tags: Debugging, LLDB, Graphical Debugger Xcode > Debugging documentation Diagnosing memory, thread, and crash issues early documentation Diagnosing issues using crash reports and device logs documentation Choosing a Network Debugging Tool documentation Testing a release build documentation Isolating Code Signing Problems from Build Problems DevForums post What is an exception? DevForums post Language Exception from RCTFatal DevForums post Standard Memory Debugging Tools DevForums post Using a Sysdiagnose Log to Debug a Hard-to-Reproduce Problem DevForums post Posting a Crash Report DevForums post Creating a test project DevForums post Implementing Your Own Crash Reporter DevForums post Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
7.0k
Aug ’24
Integrating BugSplat Crash Reporter
Hello, For the past few days I have been working on integrating a Crash Reporter called "BugSplat" to our macOS desktop app and it got me thinking, how do crash reporters work on macOS ? After days of trial and error (and claude's help) I managed to integrate it but with a different behavior than windows. On Windows: When the app crashes, the BugSplat crash report window opens and allows you to write your details and message to be sent with the crash report (along with a log file) On macOS: It displays the normal macOS' "App exit unexpectedly", to which I click dismiss. But then when I re-open the app the BugSplat crash report window appears. I asked claude if I can avoid the normal macOS dialog entirely, to which it replied: "This is by design — BugSplat macOS is a next-launch crash reporter, not an in-process one. Here's why that's intentional and unavoidable: When a process crashes (SIGSEGV, SIGBUS, etc.), macOS's ReportCrash daemon independently monitors all processes and shows the "quit unexpectedly" dialog — there's no API to suppress it. Meanwhile, BugSplat's Mach exception handler captures the crash data to disk. On the next launch, BugSplat finds that crash data and shows its dialog. This is the same model used by every macOS crash reporter (PLCrashReporter, Firebase Crashlytics on macOS, etc.). The process heap is in a corrupted state at crash time, so showing UI from inside the crashed process is unreliable." LLMs sometimes speak confidently even when they're wrong so that's why I'm asking: Is it really true that that's the normal behavior for every crash reporter? And is it really that huge of a change to overwrite the macOS dialog entirely ? Thank you in advance and sorry for the long paragraph
1
0
135
Apr ’26
After upgrading to iOS 18, crashes caused by calling null function pointers cannot be captured by developers using signal listeners.
After upgrading to iOS 18, crashes caused by calling null function pointers have changed their crash signal from SIGEGV to SIGKILL, making it impossible for developers to capture crash stacks using third-party components like KSCrash/PLCrashReporter. Is this a design change in iOS 18's memory protection mechanism? If so, are there any officially recommended crash capture solutions? - (void)MockCrashOnNullFunctionPointer { void (*func)(void) = NULL; func(); } Crash report comparison:
2
0
189
Dec ’25
After upgrading to iOS 18, crashes caused by calling null function pointers cannot be captured by developers using signal listeners.
After upgrading to iOS 18, crashes caused by calling null function pointers have changed their crash signal from SIGEVG to SIGKILL, making it impossible for developers to capture crash stacks using third-party components like KSCrash/PLCrashReporter. Is this a design change in iOS 18's memory protection mechanism? If so, are there any officially recommended crash capture solutions? Crash example code: - (void)MockCrashOnNullFunctionPointer { void (*func)(void) = NULL; func(); } Crash report comparison:
3
0
112
Dec ’25
Xcode 26 Debug Error Display Issue
I recently installed Xcode 26.0.1. (MacBook Pro 16, M2 Max, 64GB memory, macOS 26.0 (25A354)) Normally, when debugging, a red error appears in the left-hand Issues navigation, and you can click on it to access the location of the error. However, currently, when debugging, the red error does not appear in the "Issue Navigation" on the left-hand side of the Xcode screen. There is an error, but it isn't displayed. It does appear, but disappears after 1 second. (It disappears before I can click on it.) The error doesn't appear or disappears after 1 second, so I can't pinpoint the exact location. Please help me resolve this issue. Additionally, I deleted all Xcode development-related files inside my Mac and restarted my MacBook, but the symptom still persists.
3
1
335
Sep ’25
MacBook pro M1 pro camera grainy after upgrade to macOS 15.1
After the upgrade from 15.0.1 to 15.1 yesterday, the video from the built-in camera on my M1 pro MacBook Pro 14“ has become extremely grainy. It’s definitely related to the macOS upgrade. I had several video calls just before the upgrade, and everything looked fine. However, immediately after the upgrade, the video is almost unusable.
78
78
9.6k
Nov ’24
Does SystemMemoryReset related to my Application abnormal exit?
Hello, we are currently developing a VPN application. Recently, we have encountered several cases where the Network Extension process terminates unexpectedly. We cannot find any related crash logs on the device, but we can find system SystemMemoryReset logs. The timestamps in these logs closely match (with millisecond accuracy) the times when our VPN process terminated unexpectedly. We have a few questions: 1.How is the SystemMemoryReset event generated, and can this event be avoided? 2.When a SystemMemoryReset occurs, can it cause our VPN background process to be killed or the system to reboot? 3.If the background process can be killed, what conditions need to be met for this to happen, and what methods can we use to prevent the VPN background process from being killed? 4.Based on these logs, does our application have any related issues (the process name is CorplinkTunnel)? Do you have any suggestions for modifications? SystemMemoryReset-2024-06-25-232108.log SystemMemoryReset-2024-06-29-025353.log SystemMemoryReset-2024-07-01-024655.log
1
0
1.9k
Jul ’24
App crashed with NSInvalidUnarchiveOperationException when run from different target and scheme.
Hi, I'm trying to create a new target duplicated from the main target (cdx_ios) called cdx-ios-dev02. I also made a new scheme called cdx-ios-dev02 It can be built just fine however when I run it, it crashed and it throws this exception: *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (cdx_ios.AuthObject) for key (root) because no class named "cdx_ios.AuthObject" was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target). If the class was renamed, use setClassName:forClass: to add a class translation mapping to NSKeyedUnarchiver' This is the class: class AuthObject: NSObject, NSCoding { var accessT1: String = "" var t1Type: String = "bearer" var refreshT1: String = "" var expiresIn: Int = 0 var scope: String = "" var jti: String = "" init(accessT1: String = "", t1Type: String = "bearer", refreshT1: String = "", expiresIn: Int = 0, scope: String = "", jti: String = "") { self.accessT1 = accessT1 self.t1Type = t1Type self.refreshT1 = refreshT1 self.expiresIn = expiresIn self.scope = scope self.jti = jti } convenience init(dic: [String: Any]) { self.init() mapping(dic) } required convenience init(coder aDecoder: NSCoder) { let t1 = aDecoder.decodeObject(forKey: "accessT1") as? String ?? "" let t1Type = aDecoder.decodeObject(forKey: "t1Type") as? String ?? "" let refreshT1 = aDecoder.decodeObject(forKey: "refreshT1") as? String ?? "" let expiresIn = aDecoder.decodeInteger(forKey: "expiresIn") let scope = aDecoder.decodeObject(forKey: "scope") as? String ?? "" let jti = aDecoder.decodeObject(forKey: "jti") as? String ?? "" self.init( accessT1: t1, t1Type: t1Type, refreshT1: refreshT1, expiresIn: expiresIn, scope: scope, jti: jti ) } func mapping(_ dic: [String: Any]) { accessT1 = ParseUtil.dictionaryValue(dic, "access_token", "") t1Type = ParseUtil.dictionaryValue(dic, "token_type", "bearer") refreshT1 = ParseUtil.dictionaryValue(dic, "refresh_token", "") expiresIn = ParseUtil.dictionaryValue(dic, "expires_in", 0) scope = ParseUtil.dictionaryValue(dic, "scope", "") jti = ParseUtil.dictionaryValue(dic, "jti", "") } func encode(with nsCoder: NSCoder) { nsCoder.encode(accessT1, forKey: "accessT1") nsCoder.encode(t1Type, forKey: "t1Type") nsCoder.encode(refreshT1, forKey: "refreshT1") nsCoder.encode(expiresIn, forKey: "expiresIn") nsCoder.encode(scope, forKey: "scope") nsCoder.encode(jti, forKey: "jti") } } It worked fine on the original target, cdx-ios. Can anybody help me? Thank you.
3
0
1.2k
Jun ’24
CoreML Crashed in iOS18 Beta
Here is an App using CoreML API with ML package format, it works fine in iOS17, while it is crashed when calling [MLModel modelWithContentsOfURL ] to load model running in iOS18. It seems an exception is raised "Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)". Is it a bug of iOS18 beta version , and it will be fixed in the future? The stack is as below: Exception Codes: #0 at 0x1e9280254 Crashed Thread: 49 Application Specific Information: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)' Last Exception Backtrace: 0 CoreFoundation 0x0000000199466418 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x00000001967cde88 objc_exception_throw + 76 2 CoreFoundation 0x0000000199560794 -[NSException initWithCoder:] 3 CoreML 0x00000001b4fcfa8c -[MLE5ProgramLibraryOnDeviceAOTCompilationImpl createProgramLibraryHandleWithRespecialization:error:] + 1584 4 CoreML 0x00000001b4fcf3cc -[MLE5ProgramLibrary _programLibraryHandleWithForceRespecialization:error:] + 96 5 CoreML 0x00000001b4fc23d8 __44-[MLE5ProgramLibrary prepareAndReturnError:]_block_invoke + 60 6 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20 7 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 8 CoreML 0x00000001b4fc3e98 -[MLE5ProgramLibrary prepareAndReturnError:] + 220 9 CoreML 0x00000001b4fc3bc0 -[MLE5Engine initWithContainer:configuration:error:] + 220 10 CoreML 0x00000001b4fc3888 +[MLE5Engine loadModelFromCompiledArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 344 11 CoreML 0x00000001b4faf53c +[MLLoader _loadModelWithClass:fromArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 364 12 CoreML 0x00000001b4faedd4 +[MLLoader _loadModelFromArchive:configuration:modelVersion:compilerVersion:loaderEvent:useUpdatableModelLoaders:loadingClasses:error:] + 540 13 CoreML 0x00000001b4f9b900 +[MLLoader _loadWithModelLoaderFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 424 14 CoreML 0x00000001b4faaeac +[MLLoader _loadModelFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 460 15 CoreML 0x00000001b4fb0428 +[MLLoader _loadModelFromAssetAtURL:configuration:loaderEvent:error:] + 240 16 CoreML 0x00000001b4fb00c4 +[MLLoader loadModelFromAssetAtURL:configuration:error:] + 104 17 CoreML 0x00000001b5314118 -[MLModelAssetResourceFactoryOnDiskImpl modelWithConfiguration:error:] + 116 18 CoreML 0x00000001b5418cc0 __60-[MLModelAssetResourceFactory modelWithConfiguration:error:]_block_invoke + 72 19 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20 20 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 21 CoreML 0x00000001b5418b94 -[MLModelAssetResourceFactory modelWithConfiguration:error:] + 276 22 CoreML 0x00000001b542919c -[MLModelAssetModelVendor modelWithConfiguration:error:] + 152 23 CoreML 0x00000001b5380ce4 -[MLModelAsset modelWithConfiguration:error:] + 112 24 CoreML 0x00000001b4fb0b3c +[MLModel modelWithContentsOfURL:configuration:error:] + 168
2
0
1.5k
Jun ’24
launching a file dialog(choose file dialog window) is crashing in macOS Sonoma 14.2.1
I am unable to select a file where the file dialog window is not coming up to choose file. find the below error from the logs 11:30:00.608 [AWT-EventQueue-0] INFO com.bulloch.scheduler.util.FileChooser - Choose file 2024-01-12 11:30:00.953 java[1716:171065] Suppressing invocation of -[NSApplication runModalForWindow:]. -[NSApplication runModalForWindow:] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent. ( 0 AppKit 0x000000018aeac704 -[NSApplication runModalForWindow:] + 332 1 AppKit 0x000000018b8b45d0 -[NSSavePanel runModal] + 340 2 AppKit 0x000000018b8bcf2c -[NSSavePanel(Deprecated) runModalForDirectory:file:types:] + 200 3 libawt_lwawt.dylib 0x00000001221cd064 -[CFileDialog safeSaveOrLoad] + 340 4 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 5 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 6 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 7 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 8 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 9 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 10 Foundation 0x00000001885a7a38 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 11 libawt_lwawt.dylib 0x000000012220ef8c Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 340 12 ??? 0x00000001058e5144 0x0 + 4388180292 13 ??? 0x00000001055bf554 0x0 + 4384879956 14 ??? 0x0000000104e76304 0x0 + 4377240324 15 libjvm.dylib 0x0000000104365f7c _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 1892 16 libjvm.dylib 0x000000010439b564 _ZL17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 644 17 libjvm.dylib 0x000000010439bec8 jni_CallStaticObjectMethod + 432 18 libawt_lwawt.dylib 0x00000001221f1a50 -[CommonComponentAccessibility accessibilityFocusedUIElement] + 636 19 libawt_lwawt.dylib 0x00000001221b1fb0 -[AWTView accessibilityFocusedUIElement] + 156 20 AppKit 0x000000018b7310b0 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 88 21 AppKit 0x000000018ad4c770 NSAccessibilityHandleFocusChangedForce + 136 22 AppKit 0x000000018ad755e0 -[NSWindow _changeKeyAndMainLimitedOK:] + 616 23 AppKit 0x000000018b71f27c -[NSWindow _orderOut:calculatingKeyWithOptions:documentWindow:] + 912 24 AppKit 0x000000018acbc714 NSPerformVisuallyAtomicChange + 108 25 AppKit 0x000000018b720ae0 -[NSWindow _reallyDoOrderWindowOutRelativeTo:] + 448 26 AppKit 0x000000018b720e98 -[NSWindow _reallyDoOrderWindow:] + 80 27 AppKit 0x000000018b7210e8 -[NSWindow _doOrderWindow:] + 264 28 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 29 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 30 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 31 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 32 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 33 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 34 HIToolbox 0x0000000191a4c448 RunCurrentEventLoopInMode + 292 35 HIToolbox 0x0000000191a4c0d8 ReceiveNextEventCommon + 220 36 HIToolbox 0x0000000191a4bfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76 37 AppKit 0x000000018ac7a8a4 _DPSNextEvent + 660 38 AppKit 0x000000018b454980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 39 libosxapp.dylib 0x000000011f78425c -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 144 40 AppKit 0x000000018ac6dd50 -[NSApplication run] + 476 41 libosxapp.dylib 0x000000011f784038 +[NSApplicationAWT runAWTLoopWithApp:] + 184 42 libawt_lwawt.dylib 0x000000012220e30c +[AWTStarter starter:headless:] + 500 43 libosxapp.dylib 0x000000011f785c20 +[ThreadUtilities invokeBlockCopy:] + 28 44 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 45 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 46 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 47 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 48 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 49 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 50 java 0x0000000102f2022c CreateExecutionEnvironment + 824 51 java 0x0000000102f1caf8 JLI_Launch + 1576 52 java 0x0000000102f22a38 main + 76 53 dyld 0x00000001870410e0 start + 2360 ) 11:30:00.958 [AWT-EventQueue-0] WARN com.bulloch.scheduler.sched.ImportFileHelper - No file selected to import
1
0
927
Jan ’24
iOS 17.2 Beta Crash: Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar'
Hi, I have been experiencing a growing number of crashes for our iOS 17.2 Beta users. Despite attempts, I am unable to reproduce the issue on any devices. Device tried: iPhone 13 Pro, iPhone 12, iPhone 13 mini. PFB Stack trace Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar' minimumHeight=0.000000 preferredHeight=0.000000 assignedHeight=0.000000 collapsible priority=1700 order=50 Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0xec860 __exceptionPreprocess 1 libobjc.A.dylib 0x2bbe0 objc_exception_throw 2 Foundation 0x6b0dd8 _userInfoForFileAndLine 3 UIKitCore 0x57f4e4 -[_UIBarInsertLayoutData verticalOrigin] 4 UIKitCore 0x587300 -[_UINavigationBarLayout _layoutFrameFor:withOrder:] 5 UIKitCore 0x5873e4 -[_UINavigationBarLayout searchBarLayoutFrame] 6 UIKitCore 0x58d948 -[_UINavigationBarTransitionContextPush _finishWithFinalLayout:invalidLayout:] 7 UIKitCore 0x58dad0 -[_UINavigationBarTransitionContextPush complete] 8 UIKitCore 0x598968 -[_UINavigationBarVisualProviderModernIOS _endTransitionCompleted:] 9 UIKitCore 0x599d64 __96-[_UINavigationBarVisualProviderModernIOS _performAnimationWithTransitionCompletion:transition:]_block_invoke_7 10 UIKitCore 0x84cf8 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ 11 UIKitCore 0x84490 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] 12 UIKitCore 0x83b08 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] 13 UIKitCore 0x65c30 -[UIViewAnimationState animationDidStop:finished:] 14 QuartzCore 0x7208c run_animation_callbacks(void*) 15 libdispatch.dylib 0x4300 _dispatch_client_callout 16 libdispatch.dylib 0x12998 _dispatch_main_queue_drain 17 libdispatch.dylib 0x125b0 _dispatch_main_queue_callback_4CF 18 CoreFoundation 0x371ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ 19 CoreFoundation 0x33ef8 __CFRunLoopRun 20 CoreFoundation 0x33648 CFRunLoopRunSpecific 21 GraphicsServices 0x34f8 GSEventRunModal 22 UIKitCore 0x22cbcc -[UIApplication _run] 23 UIKitCore 0x22c208 UIApplicationMain 24 UIKitCore 0x455710 __swift_destroy_boxed_opaque_existential_1Tm 25 Stocard 0x7e2c main (SetupAppIconBadge.swift) 26 ??? 0x1c4129dcc (Missing)
1
0
1.5k
Nov ’23
App build is crashing on startup from testflight on ipad
Hello, Recently i updated my react-native app to support xcode 14. I added in my podfile the below lines post_install do |installer| # react_native_post_install(installer) # __apply_Xcode_12_5_M1_post_install_workaround(installer) for M1 Processors # Add these lines for Xcode 14 builds installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' end end end end I tested my app in multiple simulators (iphone 14 pro / iphone 12 / ipad) everywhere worked fine. I gave a testflight and i tested my app on iphone 9 and an 2016 ipad real devices. I didn't have any problem so i decided to give a new build. The problem now is that the reviewer told me that the app is crashing on start of the app in ipad with 16.4.1 ios. I tried to find out how to download this ios version on my simulators to reproduce the error but i couldn't (the latest ios version is 16.4), so i found a family member that had an ipad 2022 with 16.4.1 and i tried my app in there. When i am downloading my app from the testflight app it crash indeed at the first time (and not everytime, sometimes i have to delete and reinstall multiple times to catch the error) and when i open it at the second time it works well. Only the first time it crash. The crash log from console.app is: default 13:20:29.460973+0300 my_app_name_here *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: (0x1ce5aad94 0x1c76dc3d0 0x1ce750f94 0x1ce74d578 0x1ce5b5188 0x1d07c105c 0x101039418 0x101039820 0x101039e54 0x1d5a64320 0x1d5a65eac 0x1d5a746a4 0x1d5a742f4 0x1ce639d18 0x1ce61b650 0x1ce6204dc 0x208f9b35c 0x1d09ac37c 0x1d09abfe0 0x100e27f10 0x1edaa4dec) I tried to build my app from my xcode in debug mode to ipad but it doesn't crash. I don't know what else to do... How to reproduce the error or catch it ? I post the crash log from my device logs through devices & emulators section too. crash log Please provide me some help ! Edit: There is no ipad version for my app it works with the zoom-in/zoom-out functionality.
0
0
1.3k
May ’23
App crashing on TestFlight but not react native expo test env.
As title says, my apps crashing right on launch when testing through Xcode. I haven't been able to find any meaningful error logs. I get 0 errors or warnings in react native expo env. I even tried with debugging tools in expo with chrome and no memory issues or anything out of the ordinary. Here is my recent logs from the crash: Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: 0 CoreFoundation 0x1af6a2d94 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x1a87583d0 objc_exception_throw + 60 2 sarcasticgpttwo 0x10283ec9c 0x1027ec000 + 339100 3 sarcasticgpttwo 0x1028502b8 0x1027ec000 + 410296 4 sarcasticgpttwo 0x10284fb00 0x1027ec000 + 408320 5 libdispatch.dylib 0x1b6b60320 _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x1b6b61eac _dispatch_client_callout + 20 7 libdispatch.dylib 0x1b6b69534 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0x1b6b6a0a4 _dispatch_lane_invoke + 384 9 libdispatch.dylib 0x1b6b74cdc _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0x20f023ddc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x20f023b7c start_wqthread + 8 `` Chat-GPT gave me the following: The crash log suggests that the app is crashing due to an unhandled exception. The stack trace indicates that the app crashed in the main thread, while executing a block of code that was dispatched to the main thread using Grand Central Dispatch (GCD). The stack trace also shows that the crash was triggered by Thread 1, which is the Expo controller error recovery queue. Here's a brief breakdown of the relevant parts of the crash log: Exception Type: EXC_CRASH (SIGABRT) Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: CoreFoundation libobjc.A.dylib sarcasticgpttwo libdispatch.dylib Based on the information provided, it's difficult to determine the exact cause of the crash.
1
1
1.3k
May ’23
Xcode Build Failed - Undefined symbols for architecture arm64 (googleplaces)
Hey guys, I have been at a loss trying to fix this issue, I have asked on xcode reddit and unity reddit. I simply do not know what to do. I have changed the Targer version of ios from 10, upto 15 trying every version in between, I have updated EVERY plugin/asset in the unity project, I have re-booted the machie, the project, I checked the architecture is set to Standard (arm64, armv7). In despiration I also expluded arm64 which lets the project build, but it says that it won't go on the device and when I try to archive it, it fails, so even though the build works there is bugger all I can do with it! I despraetly need to get this sorted as I have to meet my work deadline!! so any help would be REALLY REALLY appricated! undefined symbols for architecture arm64: "_objc_class_$_gmsx_cctclearcutlogevent", referenced from: _objc_class_$_gmsplaceslogevent in googleplaces "_objc_metaclass_$_gmsx_cctclearcutlogevent", referenced from: _objc_metaclass_$_gmsplaceslogevent in googleplaces "_objc_class_$_gmsx_cctclearcutloggerconfiguration", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_phtphenotype", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_cctclearcutuploader", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_cctclearcutlogger", referenced from: objc-class-ref in googleplacesld: symbol(s) not found for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
0
0
2.1k
Aug ’22
Where do I find documentation for codes for exception types?
I found this article at Apple's Developer Documentation: Understanding the Exception Types in a Crash Report Anyone know where I can find specific documentation for the codes that go with each exception type? I got a run time error during a debug run of my Xcode project for iOS at a line of code where I initialize a custom struct. I want to look up what that "2" represents. Thread 3: EXC_BAD_ACCESS (code=2, address=0x16dbc7ff0) I think I found documentation at one time for those codes at another source outside of Apple. It seems there are codes that are used by hardware manufacturers for "architectures" such as "arm64" and "armv7". I see those in Xcode project build settings. Do I really need to know what each code as given in the error message represent? I found this documentation on Apple's Exception Handling Framework in a search with Google: Exception Handling. I don't see what I need. This framework seems to be more than I need at this time.
1
0
1.6k
Aug ’22
I am not finding text here in this code below
class SecondViewController: UIViewController {     @IBOutlet weak var myNameTextField: UITextField!              @IBOutlet var myNameLabel: UIView!               override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }          @IBAction func onSubmitClick(_ sender: Any) {                  if(myNameTextField.text != ""){             myNameLabel.text=myNameTextField.text          }     }
4
0
1.4k
Jul ’22
What is an exception?
The word exception is highly overloaded, not just on Apple platforms but across the industry as a whole. From an Apple perspective there are 3 things that are commonly conflated under that term: Machine exceptions — These are raised by the hardware in response to problems detected by the hardware, for example, accessing invalid memory, executing an illegal instruction, and executing a trap instruction. Language exceptions — This includes Objective-C (@try, @catch, @throw) and C++ exceptions (try, throw, catch) Cocoa errors Catching machine exceptions is super hard and it only makes sense in very specific circumstances, for example, when you’re working on a language runtime. IMPORTANT Folks commonly try to catch machine exceptions as part of a custom crash reporter. I strongly recommend against doing that, for the reasons I outline in Implementing Your Own Crash Reporter - https://developer.apple.com/forums/thread/113742. The Exception Handling framework - https://developer.apple.com/documentation/exceptionhandling, which is the tag that I applied to this post (-:, lets you convert machine exceptions to language exceptions. This is dangerous nonsense and should never be used. The situation with language exceptions varies by language: In C++ it’s common to use language exceptions as part of your program. In Objective-C language exceptions are reserved for serious programming errors. Do not throw a language exception unless you want your program to crash. Do not attempt to catch a language exception and then recover from it. Doing so will not work reliably if you’re using ARC or if the language exception originated in the OS. Swift has no facilities for dealing with language exceptions. The exception-like mechanisms you see in Swift are actually syntactic sugar on the Cocoa error facilities (more on that below). In no situation is it safe to throw or catch a language exception across an ABI boundary. Note Historically some Cocoa APIs expected you to catch language exceptions. These APIs are now either deprecated (for example, Distributed Objects) or have been replaced by APIs that use the Cocoa error mechanism (for example, NSFileManager). The Cocoa error mechanism involves a function that returns a status result and can optionally return an NSError via an ‘out’ parameter. In Objective-C this is done using an NSError ** parameter. For example, to read an NSData from a file you use this NSData method: (nullable instancetype)dataWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; To see the error in Objective-C, call it like so: NSURL * url = … something …; NSError * error; NSData * data = [NSData dataWithContentsOfURL:url options:0 error:&amp;error]; if (data == nil) { … look at `error` … } IMPORTANT Only look at error if the function result indicates that an error occurred. Swift has syntactic sugar to make this look like an exception mechanism. For example, in Swift you’d call it like so: let url: URL = … something … let data = try Data(contentsOf: url: options:[]) While this looks like an exception, it’s not. Rather, it’s a convenient way to handle the existing Cocoa error convention. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
Replies
0
Boosts
0
Views
4.6k
Activity
May ’21
Debugging Resources
General: DevForums tags: Debugging, LLDB, Graphical Debugger Xcode > Debugging documentation Diagnosing memory, thread, and crash issues early documentation Diagnosing issues using crash reports and device logs documentation Choosing a Network Debugging Tool documentation Testing a release build documentation Isolating Code Signing Problems from Build Problems DevForums post What is an exception? DevForums post Language Exception from RCTFatal DevForums post Standard Memory Debugging Tools DevForums post Using a Sysdiagnose Log to Debug a Hard-to-Reproduce Problem DevForums post Posting a Crash Report DevForums post Creating a test project DevForums post Implementing Your Own Crash Reporter DevForums post Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
Replies
0
Boosts
0
Views
7.0k
Activity
Aug ’24
Integrating BugSplat Crash Reporter
Hello, For the past few days I have been working on integrating a Crash Reporter called "BugSplat" to our macOS desktop app and it got me thinking, how do crash reporters work on macOS ? After days of trial and error (and claude's help) I managed to integrate it but with a different behavior than windows. On Windows: When the app crashes, the BugSplat crash report window opens and allows you to write your details and message to be sent with the crash report (along with a log file) On macOS: It displays the normal macOS' "App exit unexpectedly", to which I click dismiss. But then when I re-open the app the BugSplat crash report window appears. I asked claude if I can avoid the normal macOS dialog entirely, to which it replied: "This is by design — BugSplat macOS is a next-launch crash reporter, not an in-process one. Here's why that's intentional and unavoidable: When a process crashes (SIGSEGV, SIGBUS, etc.), macOS's ReportCrash daemon independently monitors all processes and shows the "quit unexpectedly" dialog — there's no API to suppress it. Meanwhile, BugSplat's Mach exception handler captures the crash data to disk. On the next launch, BugSplat finds that crash data and shows its dialog. This is the same model used by every macOS crash reporter (PLCrashReporter, Firebase Crashlytics on macOS, etc.). The process heap is in a corrupted state at crash time, so showing UI from inside the crashed process is unreliable." LLMs sometimes speak confidently even when they're wrong so that's why I'm asking: Is it really true that that's the normal behavior for every crash reporter? And is it really that huge of a change to overwrite the macOS dialog entirely ? Thank you in advance and sorry for the long paragraph
Replies
1
Boosts
0
Views
135
Activity
Apr ’26
After upgrading to iOS 18, crashes caused by calling null function pointers cannot be captured by developers using signal listeners.
After upgrading to iOS 18, crashes caused by calling null function pointers have changed their crash signal from SIGEGV to SIGKILL, making it impossible for developers to capture crash stacks using third-party components like KSCrash/PLCrashReporter. Is this a design change in iOS 18's memory protection mechanism? If so, are there any officially recommended crash capture solutions? - (void)MockCrashOnNullFunctionPointer { void (*func)(void) = NULL; func(); } Crash report comparison:
Replies
2
Boosts
0
Views
189
Activity
Dec ’25
After upgrading to iOS 18, crashes caused by calling null function pointers cannot be captured by developers using signal listeners.
After upgrading to iOS 18, crashes caused by calling null function pointers have changed their crash signal from SIGEVG to SIGKILL, making it impossible for developers to capture crash stacks using third-party components like KSCrash/PLCrashReporter. Is this a design change in iOS 18's memory protection mechanism? If so, are there any officially recommended crash capture solutions? Crash example code: - (void)MockCrashOnNullFunctionPointer { void (*func)(void) = NULL; func(); } Crash report comparison:
Replies
3
Boosts
0
Views
112
Activity
Dec ’25
Xcode 26 Debug Error Display Issue
I recently installed Xcode 26.0.1. (MacBook Pro 16, M2 Max, 64GB memory, macOS 26.0 (25A354)) Normally, when debugging, a red error appears in the left-hand Issues navigation, and you can click on it to access the location of the error. However, currently, when debugging, the red error does not appear in the "Issue Navigation" on the left-hand side of the Xcode screen. There is an error, but it isn't displayed. It does appear, but disappears after 1 second. (It disappears before I can click on it.) The error doesn't appear or disappears after 1 second, so I can't pinpoint the exact location. Please help me resolve this issue. Additionally, I deleted all Xcode development-related files inside my Mac and restarted my MacBook, but the symptom still persists.
Replies
3
Boosts
1
Views
335
Activity
Sep ’25
Crash Report - What may have been the cause?
See crash details here:- https://pastebin.com/i9u5PE4X There's a comprehensive thread here, folks! https://discussions.apple.com/thread/255651156?sortBy=oldest_first Thanks for any thoughts.
Replies
11
Boosts
0
Views
1.6k
Activity
Aug ’25
MacBook pro M1 pro camera grainy after upgrade to macOS 15.1
After the upgrade from 15.0.1 to 15.1 yesterday, the video from the built-in camera on my M1 pro MacBook Pro 14“ has become extremely grainy. It’s definitely related to the macOS upgrade. I had several video calls just before the upgrade, and everything looked fine. However, immediately after the upgrade, the video is almost unusable.
Replies
78
Boosts
78
Views
9.6k
Activity
Nov ’24
App crash on button press
My app crashes when a button is pressed, however only on a small percentage of devices. I can't reproduce it on my end, but I have a crash log from a TestFlight user. Any thoughts on what this crash log could be indicating? crashlog.crash
Replies
4
Boosts
0
Views
639
Activity
Sep ’24
Does SystemMemoryReset related to my Application abnormal exit?
Hello, we are currently developing a VPN application. Recently, we have encountered several cases where the Network Extension process terminates unexpectedly. We cannot find any related crash logs on the device, but we can find system SystemMemoryReset logs. The timestamps in these logs closely match (with millisecond accuracy) the times when our VPN process terminated unexpectedly. We have a few questions: 1.How is the SystemMemoryReset event generated, and can this event be avoided? 2.When a SystemMemoryReset occurs, can it cause our VPN background process to be killed or the system to reboot? 3.If the background process can be killed, what conditions need to be met for this to happen, and what methods can we use to prevent the VPN background process from being killed? 4.Based on these logs, does our application have any related issues (the process name is CorplinkTunnel)? Do you have any suggestions for modifications? SystemMemoryReset-2024-06-25-232108.log SystemMemoryReset-2024-06-29-025353.log SystemMemoryReset-2024-07-01-024655.log
Replies
1
Boosts
0
Views
1.9k
Activity
Jul ’24
App crashed with NSInvalidUnarchiveOperationException when run from different target and scheme.
Hi, I'm trying to create a new target duplicated from the main target (cdx_ios) called cdx-ios-dev02. I also made a new scheme called cdx-ios-dev02 It can be built just fine however when I run it, it crashed and it throws this exception: *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (cdx_ios.AuthObject) for key (root) because no class named "cdx_ios.AuthObject" was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target). If the class was renamed, use setClassName:forClass: to add a class translation mapping to NSKeyedUnarchiver' This is the class: class AuthObject: NSObject, NSCoding { var accessT1: String = "" var t1Type: String = "bearer" var refreshT1: String = "" var expiresIn: Int = 0 var scope: String = "" var jti: String = "" init(accessT1: String = "", t1Type: String = "bearer", refreshT1: String = "", expiresIn: Int = 0, scope: String = "", jti: String = "") { self.accessT1 = accessT1 self.t1Type = t1Type self.refreshT1 = refreshT1 self.expiresIn = expiresIn self.scope = scope self.jti = jti } convenience init(dic: [String: Any]) { self.init() mapping(dic) } required convenience init(coder aDecoder: NSCoder) { let t1 = aDecoder.decodeObject(forKey: "accessT1") as? String ?? "" let t1Type = aDecoder.decodeObject(forKey: "t1Type") as? String ?? "" let refreshT1 = aDecoder.decodeObject(forKey: "refreshT1") as? String ?? "" let expiresIn = aDecoder.decodeInteger(forKey: "expiresIn") let scope = aDecoder.decodeObject(forKey: "scope") as? String ?? "" let jti = aDecoder.decodeObject(forKey: "jti") as? String ?? "" self.init( accessT1: t1, t1Type: t1Type, refreshT1: refreshT1, expiresIn: expiresIn, scope: scope, jti: jti ) } func mapping(_ dic: [String: Any]) { accessT1 = ParseUtil.dictionaryValue(dic, "access_token", "") t1Type = ParseUtil.dictionaryValue(dic, "token_type", "bearer") refreshT1 = ParseUtil.dictionaryValue(dic, "refresh_token", "") expiresIn = ParseUtil.dictionaryValue(dic, "expires_in", 0) scope = ParseUtil.dictionaryValue(dic, "scope", "") jti = ParseUtil.dictionaryValue(dic, "jti", "") } func encode(with nsCoder: NSCoder) { nsCoder.encode(accessT1, forKey: "accessT1") nsCoder.encode(t1Type, forKey: "t1Type") nsCoder.encode(refreshT1, forKey: "refreshT1") nsCoder.encode(expiresIn, forKey: "expiresIn") nsCoder.encode(scope, forKey: "scope") nsCoder.encode(jti, forKey: "jti") } } It worked fine on the original target, cdx-ios. Can anybody help me? Thank you.
Replies
3
Boosts
0
Views
1.2k
Activity
Jun ’24
CoreML Crashed in iOS18 Beta
Here is an App using CoreML API with ML package format, it works fine in iOS17, while it is crashed when calling [MLModel modelWithContentsOfURL ] to load model running in iOS18. It seems an exception is raised "Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)". Is it a bug of iOS18 beta version , and it will be fixed in the future? The stack is as below: Exception Codes: #0 at 0x1e9280254 Crashed Thread: 49 Application Specific Information: *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)' Last Exception Backtrace: 0 CoreFoundation 0x0000000199466418 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x00000001967cde88 objc_exception_throw + 76 2 CoreFoundation 0x0000000199560794 -[NSException initWithCoder:] 3 CoreML 0x00000001b4fcfa8c -[MLE5ProgramLibraryOnDeviceAOTCompilationImpl createProgramLibraryHandleWithRespecialization:error:] + 1584 4 CoreML 0x00000001b4fcf3cc -[MLE5ProgramLibrary _programLibraryHandleWithForceRespecialization:error:] + 96 5 CoreML 0x00000001b4fc23d8 __44-[MLE5ProgramLibrary prepareAndReturnError:]_block_invoke + 60 6 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20 7 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 8 CoreML 0x00000001b4fc3e98 -[MLE5ProgramLibrary prepareAndReturnError:] + 220 9 CoreML 0x00000001b4fc3bc0 -[MLE5Engine initWithContainer:configuration:error:] + 220 10 CoreML 0x00000001b4fc3888 +[MLE5Engine loadModelFromCompiledArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 344 11 CoreML 0x00000001b4faf53c +[MLLoader _loadModelWithClass:fromArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 364 12 CoreML 0x00000001b4faedd4 +[MLLoader _loadModelFromArchive:configuration:modelVersion:compilerVersion:loaderEvent:useUpdatableModelLoaders:loadingClasses:error:] + 540 13 CoreML 0x00000001b4f9b900 +[MLLoader _loadWithModelLoaderFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 424 14 CoreML 0x00000001b4faaeac +[MLLoader _loadModelFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 460 15 CoreML 0x00000001b4fb0428 +[MLLoader _loadModelFromAssetAtURL:configuration:loaderEvent:error:] + 240 16 CoreML 0x00000001b4fb00c4 +[MLLoader loadModelFromAssetAtURL:configuration:error:] + 104 17 CoreML 0x00000001b5314118 -[MLModelAssetResourceFactoryOnDiskImpl modelWithConfiguration:error:] + 116 18 CoreML 0x00000001b5418cc0 __60-[MLModelAssetResourceFactory modelWithConfiguration:error:]_block_invoke + 72 19 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20 20 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56 21 CoreML 0x00000001b5418b94 -[MLModelAssetResourceFactory modelWithConfiguration:error:] + 276 22 CoreML 0x00000001b542919c -[MLModelAssetModelVendor modelWithConfiguration:error:] + 152 23 CoreML 0x00000001b5380ce4 -[MLModelAsset modelWithConfiguration:error:] + 112 24 CoreML 0x00000001b4fb0b3c +[MLModel modelWithContentsOfURL:configuration:error:] + 168
Replies
2
Boosts
0
Views
1.5k
Activity
Jun ’24
launching a file dialog(choose file dialog window) is crashing in macOS Sonoma 14.2.1
I am unable to select a file where the file dialog window is not coming up to choose file. find the below error from the logs 11:30:00.608 [AWT-EventQueue-0] INFO com.bulloch.scheduler.util.FileChooser - Choose file 2024-01-12 11:30:00.953 java[1716:171065] Suppressing invocation of -[NSApplication runModalForWindow:]. -[NSApplication runModalForWindow:] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent. ( 0 AppKit 0x000000018aeac704 -[NSApplication runModalForWindow:] + 332 1 AppKit 0x000000018b8b45d0 -[NSSavePanel runModal] + 340 2 AppKit 0x000000018b8bcf2c -[NSSavePanel(Deprecated) runModalForDirectory:file:types:] + 200 3 libawt_lwawt.dylib 0x00000001221cd064 -[CFileDialog safeSaveOrLoad] + 340 4 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 5 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 6 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 7 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 8 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 9 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 10 Foundation 0x00000001885a7a38 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 11 libawt_lwawt.dylib 0x000000012220ef8c Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 340 12 ??? 0x00000001058e5144 0x0 + 4388180292 13 ??? 0x00000001055bf554 0x0 + 4384879956 14 ??? 0x0000000104e76304 0x0 + 4377240324 15 libjvm.dylib 0x0000000104365f7c _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 1892 16 libjvm.dylib 0x000000010439b564 _ZL17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 644 17 libjvm.dylib 0x000000010439bec8 jni_CallStaticObjectMethod + 432 18 libawt_lwawt.dylib 0x00000001221f1a50 -[CommonComponentAccessibility accessibilityFocusedUIElement] + 636 19 libawt_lwawt.dylib 0x00000001221b1fb0 -[AWTView accessibilityFocusedUIElement] + 156 20 AppKit 0x000000018b7310b0 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 88 21 AppKit 0x000000018ad4c770 NSAccessibilityHandleFocusChangedForce + 136 22 AppKit 0x000000018ad755e0 -[NSWindow _changeKeyAndMainLimitedOK:] + 616 23 AppKit 0x000000018b71f27c -[NSWindow _orderOut:calculatingKeyWithOptions:documentWindow:] + 912 24 AppKit 0x000000018acbc714 NSPerformVisuallyAtomicChange + 108 25 AppKit 0x000000018b720ae0 -[NSWindow _reallyDoOrderWindowOutRelativeTo:] + 448 26 AppKit 0x000000018b720e98 -[NSWindow _reallyDoOrderWindow:] + 80 27 AppKit 0x000000018b7210e8 -[NSWindow _doOrderWindow:] + 264 28 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 29 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 30 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 31 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 32 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 33 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 34 HIToolbox 0x0000000191a4c448 RunCurrentEventLoopInMode + 292 35 HIToolbox 0x0000000191a4c0d8 ReceiveNextEventCommon + 220 36 HIToolbox 0x0000000191a4bfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76 37 AppKit 0x000000018ac7a8a4 _DPSNextEvent + 660 38 AppKit 0x000000018b454980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 39 libosxapp.dylib 0x000000011f78425c -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 144 40 AppKit 0x000000018ac6dd50 -[NSApplication run] + 476 41 libosxapp.dylib 0x000000011f784038 +[NSApplicationAWT runAWTLoopWithApp:] + 184 42 libawt_lwawt.dylib 0x000000012220e30c +[AWTStarter starter:headless:] + 500 43 libosxapp.dylib 0x000000011f785c20 +[ThreadUtilities invokeBlockCopy:] + 28 44 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264 45 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 46 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176 47 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244 48 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828 49 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608 50 java 0x0000000102f2022c CreateExecutionEnvironment + 824 51 java 0x0000000102f1caf8 JLI_Launch + 1576 52 java 0x0000000102f22a38 main + 76 53 dyld 0x00000001870410e0 start + 2360 ) 11:30:00.958 [AWT-EventQueue-0] WARN com.bulloch.scheduler.sched.ImportFileHelper - No file selected to import
Replies
1
Boosts
0
Views
927
Activity
Jan ’24
iOS 17.2 Beta Crash: Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar'
Hi, I have been experiencing a growing number of crashes for our iOS 17.2 Beta users. Despite attempts, I am unable to reproduce the issue on any devices. Device tried: iPhone 13 Pro, iPhone 12, iPhone 13 mini. PFB Stack trace Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar' minimumHeight=0.000000 preferredHeight=0.000000 assignedHeight=0.000000 collapsible priority=1700 order=50 Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0xec860 __exceptionPreprocess 1 libobjc.A.dylib 0x2bbe0 objc_exception_throw 2 Foundation 0x6b0dd8 _userInfoForFileAndLine 3 UIKitCore 0x57f4e4 -[_UIBarInsertLayoutData verticalOrigin] 4 UIKitCore 0x587300 -[_UINavigationBarLayout _layoutFrameFor:withOrder:] 5 UIKitCore 0x5873e4 -[_UINavigationBarLayout searchBarLayoutFrame] 6 UIKitCore 0x58d948 -[_UINavigationBarTransitionContextPush _finishWithFinalLayout:invalidLayout:] 7 UIKitCore 0x58dad0 -[_UINavigationBarTransitionContextPush complete] 8 UIKitCore 0x598968 -[_UINavigationBarVisualProviderModernIOS _endTransitionCompleted:] 9 UIKitCore 0x599d64 __96-[_UINavigationBarVisualProviderModernIOS _performAnimationWithTransitionCompletion:transition:]_block_invoke_7 10 UIKitCore 0x84cf8 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ 11 UIKitCore 0x84490 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] 12 UIKitCore 0x83b08 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] 13 UIKitCore 0x65c30 -[UIViewAnimationState animationDidStop:finished:] 14 QuartzCore 0x7208c run_animation_callbacks(void*) 15 libdispatch.dylib 0x4300 _dispatch_client_callout 16 libdispatch.dylib 0x12998 _dispatch_main_queue_drain 17 libdispatch.dylib 0x125b0 _dispatch_main_queue_callback_4CF 18 CoreFoundation 0x371ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ 19 CoreFoundation 0x33ef8 __CFRunLoopRun 20 CoreFoundation 0x33648 CFRunLoopRunSpecific 21 GraphicsServices 0x34f8 GSEventRunModal 22 UIKitCore 0x22cbcc -[UIApplication _run] 23 UIKitCore 0x22c208 UIApplicationMain 24 UIKitCore 0x455710 __swift_destroy_boxed_opaque_existential_1Tm 25 Stocard 0x7e2c main (SetupAppIconBadge.swift) 26 ??? 0x1c4129dcc (Missing)
Replies
1
Boosts
0
Views
1.5k
Activity
Nov ’23
After update on Xcode Version 14.3 (14E222b) all functions shouldChangeCharactersIn are called twice. I've checked all sources and even new projects are with the bug
After update on Xcode Version 14.3 (14E222b) all functions shouldChangeCharactersIn are called twice. I've checked all sources and even new projects are with the bug
Replies
2
Boosts
0
Views
1.1k
Activity
Aug ’23
FirebaseFirestore
when i use FirebaseFirestore in flutter app i got below error so plz guide to me. [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (FirebaseFirestore)
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’23
App build is crashing on startup from testflight on ipad
Hello, Recently i updated my react-native app to support xcode 14. I added in my podfile the below lines post_install do |installer| # react_native_post_install(installer) # __apply_Xcode_12_5_M1_post_install_workaround(installer) for M1 Processors # Add these lines for Xcode 14 builds installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' end end end end I tested my app in multiple simulators (iphone 14 pro / iphone 12 / ipad) everywhere worked fine. I gave a testflight and i tested my app on iphone 9 and an 2016 ipad real devices. I didn't have any problem so i decided to give a new build. The problem now is that the reviewer told me that the app is crashing on start of the app in ipad with 16.4.1 ios. I tried to find out how to download this ios version on my simulators to reproduce the error but i couldn't (the latest ios version is 16.4), so i found a family member that had an ipad 2022 with 16.4.1 and i tried my app in there. When i am downloading my app from the testflight app it crash indeed at the first time (and not everytime, sometimes i have to delete and reinstall multiple times to catch the error) and when i open it at the second time it works well. Only the first time it crash. The crash log from console.app is: default 13:20:29.460973+0300 my_app_name_here *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: (0x1ce5aad94 0x1c76dc3d0 0x1ce750f94 0x1ce74d578 0x1ce5b5188 0x1d07c105c 0x101039418 0x101039820 0x101039e54 0x1d5a64320 0x1d5a65eac 0x1d5a746a4 0x1d5a742f4 0x1ce639d18 0x1ce61b650 0x1ce6204dc 0x208f9b35c 0x1d09ac37c 0x1d09abfe0 0x100e27f10 0x1edaa4dec) I tried to build my app from my xcode in debug mode to ipad but it doesn't crash. I don't know what else to do... How to reproduce the error or catch it ? I post the crash log from my device logs through devices & emulators section too. crash log Please provide me some help ! Edit: There is no ipad version for my app it works with the zoom-in/zoom-out functionality.
Replies
0
Boosts
0
Views
1.3k
Activity
May ’23
App crashing on TestFlight but not react native expo test env.
As title says, my apps crashing right on launch when testing through Xcode. I haven't been able to find any meaningful error logs. I get 0 errors or warnings in react native expo env. I even tried with debugging tools in expo with chrome and no memory issues or anything out of the ordinary. Here is my recent logs from the crash: Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: 0 CoreFoundation 0x1af6a2d94 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x1a87583d0 objc_exception_throw + 60 2 sarcasticgpttwo 0x10283ec9c 0x1027ec000 + 339100 3 sarcasticgpttwo 0x1028502b8 0x1027ec000 + 410296 4 sarcasticgpttwo 0x10284fb00 0x1027ec000 + 408320 5 libdispatch.dylib 0x1b6b60320 _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x1b6b61eac _dispatch_client_callout + 20 7 libdispatch.dylib 0x1b6b69534 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0x1b6b6a0a4 _dispatch_lane_invoke + 384 9 libdispatch.dylib 0x1b6b74cdc _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0x20f023ddc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x20f023b7c start_wqthread + 8 `` Chat-GPT gave me the following: The crash log suggests that the app is crashing due to an unhandled exception. The stack trace indicates that the app crashed in the main thread, while executing a block of code that was dispatched to the main thread using Grand Central Dispatch (GCD). The stack trace also shows that the crash was triggered by Thread 1, which is the Expo controller error recovery queue. Here's a brief breakdown of the relevant parts of the crash log: Exception Type: EXC_CRASH (SIGABRT) Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: CoreFoundation libobjc.A.dylib sarcasticgpttwo libdispatch.dylib Based on the information provided, it's difficult to determine the exact cause of the crash.
Replies
1
Boosts
1
Views
1.3k
Activity
May ’23
Xcode Build Failed - Undefined symbols for architecture arm64 (googleplaces)
Hey guys, I have been at a loss trying to fix this issue, I have asked on xcode reddit and unity reddit. I simply do not know what to do. I have changed the Targer version of ios from 10, upto 15 trying every version in between, I have updated EVERY plugin/asset in the unity project, I have re-booted the machie, the project, I checked the architecture is set to Standard (arm64, armv7). In despiration I also expluded arm64 which lets the project build, but it says that it won't go on the device and when I try to archive it, it fails, so even though the build works there is bugger all I can do with it! I despraetly need to get this sorted as I have to meet my work deadline!! so any help would be REALLY REALLY appricated! undefined symbols for architecture arm64: "_objc_class_$_gmsx_cctclearcutlogevent", referenced from: _objc_class_$_gmsplaceslogevent in googleplaces "_objc_metaclass_$_gmsx_cctclearcutlogevent", referenced from: _objc_metaclass_$_gmsplaceslogevent in googleplaces "_objc_class_$_gmsx_cctclearcutloggerconfiguration", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_phtphenotype", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_cctclearcutuploader", referenced from: objc-class-ref in googleplaces "_objc_class_$_gmsx_cctclearcutlogger", referenced from: objc-class-ref in googleplacesld: symbol(s) not found for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Replies
0
Boosts
0
Views
2.1k
Activity
Aug ’22
Where do I find documentation for codes for exception types?
I found this article at Apple's Developer Documentation: Understanding the Exception Types in a Crash Report Anyone know where I can find specific documentation for the codes that go with each exception type? I got a run time error during a debug run of my Xcode project for iOS at a line of code where I initialize a custom struct. I want to look up what that "2" represents. Thread 3: EXC_BAD_ACCESS (code=2, address=0x16dbc7ff0) I think I found documentation at one time for those codes at another source outside of Apple. It seems there are codes that are used by hardware manufacturers for "architectures" such as "arm64" and "armv7". I see those in Xcode project build settings. Do I really need to know what each code as given in the error message represent? I found this documentation on Apple's Exception Handling Framework in a search with Google: Exception Handling. I don't see what I need. This framework seems to be more than I need at this time.
Replies
1
Boosts
0
Views
1.6k
Activity
Aug ’22
I am not finding text here in this code below
class SecondViewController: UIViewController {     @IBOutlet weak var myNameTextField: UITextField!              @IBOutlet var myNameLabel: UIView!               override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }          @IBAction func onSubmitClick(_ sender: Any) {                  if(myNameTextField.text != ""){             myNameLabel.text=myNameTextField.text          }     }
Replies
4
Boosts
0
Views
1.4k
Activity
Jul ’22