[node] don't go through npm to debug in Xcode

This commit is contained in:
Konstantin Käfer
2015-12-09 11:54:04 -08:00
parent 9bd6abb023
commit 249966a9d7
4 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
NAME=$1
shift
CMD=$@
DIR="build/binding.xcodeproj/xcshareddata/xcschemes"
mkdir -p "${DIR}"
sed "s#{{NODE_PATH}}#$(dirname `which node`)#;s#{{BLUEPRINT_IDENTIFIER}}#$(hexdump -n 12 -v -e '/1 "%02X"' /dev/urandom)#;s#{{WORKING_DIRECTORY}}#$(pwd)#;s#{{NODE_ARGUMENT}}#${CMD}#" scripts/node/node.xcscheme > "${DIR}/${NAME}.xcscheme"