Shell Script Call error with Xcode4 when trying to start a Shell script as a build step

Here is what I get when I try to create an Xcode project:

Intermediates/demo2.build/Debug-iphonesimulator/demo2.build/Script-5E564EAC1393823C00BFBA83.sh

/Users/ssbarnea/Library/Developer/Xcode/DerivedData/demo2-fdzrmxojwtekcbeivraccjjadvqz/Build/Intermediates/demo2.build/Debug-iphonesimulator/demo2.build/Script-5E564EAC1393823C00BFBA83.sh: line 2: ${PROJECT_DIR}/local-deploy.sh: No such file or directory

In Xcode, I added a new Build Phase, "Run Script" to arget by default, which works with the shell /bin/shand contains only:

'${PROJECT_DIR}/local-deploy.sh'

I can assure that the local-deploy.sh file exists in the project directory and that it is executable. It even works if I call it from the console;)

+3
source share
2 answers

It should be the following. s / '/ "/ g :-)

"${PROJECT_DIR}/local-deploy.sh"
+1
source

, , . OpenCV.framework , , . , .

0

All Articles