The error of the / bin / sh command with Xcode 8 exit code

While starting my project, I get this error. Can anyone say what went wrong? I ran the script in its place, but still getting this error.

Build error

This is my Run script.

./Rapporter/BIN/ConfigurationEncryptor $PROJECT_DIR/Rapporter/Resources/APIConfiguration.plist $PROJECT_DIR/Rapporter/Resources/APIConfiguration.enc cp $PROJECT_DIR/Rapporter/Resources/APIConfiguration.enc ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} 

Running the script is fine. But the variable $ {UNLOCALIZED_RESOURCES_FOLDER_PATH} is resolved to a folder called "project name". Due to the space between the "project name" I was getting this error. So I set the folder name as “project” and it worked!

Does anyone have an idea how I can set the folder name as “project name” and still make this script run?

+5
source share
1 answer

Running the script is fine. But the variable $ {UNLOCALIZED_RESOURCES_FOLDER_PATH} is resolved to a folder called "project name". Due to the space between the "project name" I was getting this error. Since @pckill added a comment by adding the second cp argument in quotation marks.

cp $PROJECT_DIR/Rapporter/Resources/APIConfiguration.enc ${BUILT_PRODUCTS_DIR}/"${UNLOCALIZED_RESOURCES_FOLDER_PATH}"

+5
source

Source: https://habr.com/ru/post/1265534/


All Articles