set docdir in Xcode build
fixes part of #1070