BuildWithLDDryRun Create LDDryRun.xcconfig and use it as the build config file Define LD = $(SRCROOT)/dryrun_ld.sh in LDDryRun.xcconfig See detail in dryrun_ld.sh The sample.dat file is used as a "ld" output LD_DEPENDENCY_INFO_FILE