Last active
August 29, 2015 14:01
-
-
Save HamGuy/24f1fb9db9ac8a5167dc to your computer and use it in GitHub Desktop.
安装 app 到 ios 模拟器的脚本 source:http://testerhome.com/topics/461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pick a uuid for the app (or reuse existing one). | |
if ! [ -f installApp.uuid ]; then | |
uuidgen > installApp.uuid | |
fi | |
UUID=$(cat installApp.uuid) | |
#create supporting folders | |
TOPDIR="/Users/Apple/Library/Application Support/iPhone Simulator/7.0/Applications/$UUID/" | |
mkdir -p "$TOPDIR" | |
mkdir -p "$TOPDIR/Documents" | |
mkdir -p "$TOPDIR/Library" | |
mkdir -p "$TOPDIR/tmp" | |
mkdir -p "$TOPDIR/$1.app" | |
#copy all the app file to the simulators directory | |
cp -r * "$TOPDIR/$1.app" | |
#将这个 shell 脚本存储为 install_app.sh, 然后 chmod a+x install_app.sh | |
# | |
#现在你有一个 build 好的应用比如 DogFood.app。 那么你要做的是: | |
# | |
#Acd PATH/TO/DogFood.app | |
#APATH/TO/install_app.sh DogFood | |
#再打开模拟器,你就能看到 DogFood 应用了。 | |
# | |
#注意,请修改 TOPDIR 为自己的模拟器路径。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment