modify platform for mac and only .h and .m