add ios&mac support
modify
fix compile error with ios & mac project
modify
modify
modify