Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

How to Create Applications with Objective-C Without ARC

I've been teaching myself Objective-C and I wanted to start creating projects that don't use ARC to become better at memory management and learn how it all works. I've been attempting to build and run applications, but I'm not really sure where to start as modern iOS development is used with Swift and memory management is handled.

Is there any way to create modern applications that use Objective-C, UIKit, and not use ARC?

Answered by DTS Engineer in 839647022

You will most likely want to search through the Documentation Archive for documents discussing memory. For Objective-C and Cocoa, the Advanced Memory Management Programming Guide is a good place to start.

Accepted Answer

Welcome to the forum.

Have a look in this 10 years old document: https://www.thomashanning.com/how-to-disable-arc-for-objective-c-files/

But that seems a bit useless.

You'd better read technical notes (e.g., https://clang.llvm.org/docs/AutomaticReferenceCounting.html) explaining how ARC works ; that's more efficient than spending so much time in reinventing.

If your goal is to "to create modern applications", you are probably heading in the opposite direction.

If you found what you needed in those references, don't forget to close the thread by marking the answer as correct.

Hello!

Thank you for your response!

I'll take a look at them! Honestly, I should've been more clear about what I wanted to make. I just wanted to make some simple apps, not being released on the App Store, using Objective-C and UIKit, but using modern versions of iOS such as iOS 15+.

This will definitely help me on understanding ARC and memory management!

Thank you!

You will most likely want to search through the Documentation Archive for documents discussing memory. For Objective-C and Cocoa, the Advanced Memory Management Programming Guide is a good place to start.

How to Create Applications with Objective-C Without ARC
 
 
Q