Xcode Post Build Copy File Actions
问题 In Xcode, how can I call a 'shell script' which is a PERL script that copies the .app and .dsym files to a different directory? I want to pass the name of the project and/or the project's root directory to the script. I want to have the script called every time I build in release and distribution modes but not in debug mode. 回答1: Right-click on your target and choose Add->New Build Phase->New Run Script Build Phase. Inside the "Script" text area, add: if [ ${CONFIGURATION} != "Debug" ] then