How does Objective-C runtime handle class loading order?

Updated May 17, 2026

Short answer

Classes are registered at load time via dyld and objc runtime initialization.

Deep explanation

dyld loads Mach-O segments, then objc runtime registers classes, categories, and protocols. Order depends on link order, affecting +load execution sequence.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →