Why do symlinks sometimes vanish in Xcode?
Symlinks are often destroyed by some archiving tools, especially by those built into some versions of PHP, for example. Try to pack and unpack an archive and check if symlinks are still alive.
Also, symlinks won't be saved on NTFS or similar non-mac filesystem.
Please check if symlinks get broken after you access the drive from Windows computer.