xcode 4のビルドフェーズを使用してファイルを削除することはできますか?releaseまたはdevの場合はそれに基づいていますか?ビルドフェーズでファイルを削除しますか?
もし誰かが例があれば?
私が試してみました:
if [ "${CONFIGURATION}" = "Debug" ]; then
find "$TARGET_BUILD_DIR" -name '*-live.*' -print0 | xargs -0 rm
fi
をこれがCopyStringsFile
"build/Debug-iphonesimulator/Blue Sky.app/PortalText-live.strings" CDL/PortalText-live.strings
cd "/Users/internet/Desktop/iPhone Template/iPhonePortalTemplate/CDL.Labs"
setenv PATH "/Developer/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir "/Users/internet/Desktop/iPhone Template/iPhonePortalTemplate/CDL.Labs/build/Debug-iphonesimulator/Blue Sky.app" -- CDL/PortalText-live.strings
を印刷します。しかし、実際にバンドルからファイルを削除しません。
私が2つの異なるファイルを持っている理由は、webserviceへの呼び出しを行い、devバージョンとライブバージョンがあるため、すべてのURLを処理するbackoffice-dev/live.xmlファイル私は私のコードをappdelegate.mで正しいファイルを選択しているが、そこに余分なファイルを持っているポイントがないので、ビルドフェーズで削除したい、その重要ではないので、そうすることはできません。私はちょうど私が頼むと思った。 – Popeye