Enable the "Main Thread Checker" and see if you are calling some AppKit methods from the wrong thread.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: