fix xcode can not compile