Revert "Add Cocoa framework and try to fix it"

This reverts commit e4275a6142c266342aaf315225d33a652e4ac19b.