remove copyright comments and fix xcode errors