Q1
Walk me through your approach to debugging a memory leak in an iOS app. What tools would you use, and how would you identify whether it's a retain cycle or something else?
Why they ask this:* They want to assess your understanding of iOS memory management, familiarity with debugging tools like Instruments, and your systematic problem-solving approach to common production issues.
Q2
Explain the differences between Grand Central Dispatch (GCD) and Operation queues. When would you choose one over the other in a production app?
Why they ask this:* This tests your knowledge of concurrency patterns in iOS, your ability to make architectural decisions based on use cases, and whether you understand trade-offs between framework options.
Q3
Describe your experience with network layer architecture. How would you structure API calls, handle authentication tokens, and manage request/response caching in a scalable way?
Why they ask this:* They're evaluating your ability to design maintainable, testable networking code and whether you've thought about real-world concerns like token refresh, offline handling, and performance optimization.
Q4
What's your approach to writing unit tests for view controllers or SwiftUI views? What challenges have you faced, and how did you overcome them?