Updated build for release and added a respondsToSelector check