现在我正在开发iPhone应用程序。
我创建了xcodescript.sh。
但是构建失败。
错误消息是:
xcodescript.sh: line 2:
: command not found
xcodescript.sh: line 31: syntax error: unexpected end of file
Command PhaseScriptExecution failed with a nonzero exit code
我的xcodescript.sh内容是:
#!/bin/sh
BIN_DIR="bin"
if [ ! -d "$BIN_DIR" ]; then
mkdir -p "$BIN_DIR"
fi
BIN_DIR_TMP="bin_tmp"
if [ ! -d "$BIN_DIR_TMP" ]; then
mkdir -p "$BIN_DIR_TMP"
fi
DST_DIR1="./../wfchat/Frameworks"
if [ ! -d "$DST_DIR1" ]; then
mkdir -p "$DST_DIR1"
fi
DST_DIR2="./../wfuikit/Frameworks"
if [ ! -d "$DST_DIR2" ]; then
mkdir -p "$DST_DIR2"
fi
cp -af ${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.framework/
${BIN_DIR_TMP}/${PLATFORM_NAME}-${TARGET_NAME}.framework
cp -af ${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.framework/ ${BIN_DIR}/${TARGET_NAME}.framework
lipo -create $BIN_DIR_TMP/*-${TARGET_NAME}.framework/${TARGET_NAME} -output
${BIN_DIR}/${TARGET_NAME}.framework/${TARGET_NAME}
cp -af ${BIN_DIR}/* ${DST_DIR1}/
cp -af ${BIN_DIR}/* ${DST_DIR2}/
请帮助我。谢谢与问候