I have a project that builds a library. The Xcode setting DSTROOT is set to the default /tmp/$(PROJECT_NAME).dst and Xcode puts the library there. I have a copy phase to add man pages. It has Destination set to "Absolute Path" and Path set to $(DSTROOT)/usr/local/share/man/man3. When I run it, it tries to copy the man pages to "/usr/local/share/man/man3" so I get permission denied. In other words it acts as if DSTROOT is not set. I tried explicitly setting a DSTROOT value instead of using the default. Same thing.
How can I get this Copy Files Build Phase to use the DSTROOT value?