fix xcode build error