Fixing attribute generation for only header files without .m