fixed UIKit/AppKit dependency