XCode C/C++ Flags Bash Script
问题 Im trying to run the following command on XCode adding it as a C/C++ Flags to I can get the build number coming from a shell script that is executed at the run script phase of my project. This work fine with GCC on another Unix like system: -D__BUILD_VERSION=$(cat build_number) And ok XCode Im trying to use the following: -D__BUILD_VERSION=$(cat $PROJECT_DIR/build_number) But it doesn't work, what Im I doing wrong? In XCode, how can I assign the result of cat build_number to the __BUILD