Application circumvented Objective-C runtime dealloc initiation

I have installed xcode 15.3 and trying to run my old source code which was working fine in xcode13. Issue in xcode 15.3- App has been terminated after launching the app in iOS 17, but working fine in iOS 15. Kindly review below message print after app terminated.

Thread 1: "Application circumvented Objective-C runtime dealloc initiation for <UILabel> object."

warning: Module "/usr/lib/system/libsystem_kernel.dylib" uses triple "x86_64-apple-macosx14.3.0", which is not compatible with the target triple "x86_64-apple-ios13.0.0-simulator". Enabling per-module Swift scratch context.

Kindly provide solution, I have tried to find + (void)initializer but not find in my source code. I have fixed in source code with UIlabel allocation then again app terminated for next object like UIView etc. Like "Application circumvented Objective-C runtime dealloc initiation for <UIView> object."

This means that the view's dealloc method was called without first going through a release that dropped the view's refcount to 0. I can't say for sure without more information, but I'd guess that some code in the app is directly calling dealloc, which is not allowed. If you can catch this in the debugger, you can look up the call stack to see what's calling dealloc and that should hopefully show where the issue is. If there is a direct call to dealloc, replace it with the appropriate retain and release calls (or better yet, turn on Automatic Reference Counting and let the compiler handle it for you) and that should fix it.

Hello @Developer Tools Engineer Thank you for provide solution, But I'm curious about to know Did delloac issue occurred only in iOS 17, not in iOS 15? iOS 15- working fine, issue in iOS17 only using same xocde 15.

Hi, Please provide solution. I have enable ARC already.

Xcode - 15.3

  1. Older iOS version- working fine, no issue
  2. Newer iOS version 16.0, 17.0 - issue occured.

Xcode- 13

  • Working fine, no issue for all iOS version

So i think should be fix by xcode IDE side, may be some issue in latest xcode?

Not mine but it worked for me:

Find

+(void)initialize
{
    [super initialize];
}

Replace

+(void)load
{
    [super load];
}
Application circumvented Objective-C runtime dealloc initiation
 
 
Q