From f92b88aac4f093dbe8ca3dce95a936fbd5ab3a3b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 31 May 2018 22:49:32 -0600 Subject: [PATCH] install script --- hub.ios.install.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 hub.ios.install.sh diff --git a/hub.ios.install.sh b/hub.ios.install.sh new file mode 100644 index 0000000..b048fec --- /dev/null +++ b/hub.ios.install.sh @@ -0,0 +1,62 @@ +echo "##########################" +echo "# Hub iOS App Installer #" +echo "##########################" +echo "" +read -p "Press [enter] after installing xcode" my_ignore +echo "" +echo "Now we're going to install some more xcode tools..." +echo "" +echo "Press [enter] if you accept the xcode license agreement." +read -p "(you may be asked for your computer password)" my_ignore +echo "" +sudo xcodebuild -license accept +xcode-select --install +echo "" +echo "Now we're installing cocoapods (may ask for computer password)" +echo "(this is the quick install, the real one happens later)" +echo "" +sudo gem install cocoapods +echo "" +echo "Now we're downloading the Hub App code" +echo "(may ask for git password)" +echo "" +mkdir -p ~/git.ppl.family/ppl +pushd ~/git.ppl.family/ppl/ + + # ~/git.ppl.family/ppl/ + git clone https://git.ppl.family/ppl/ppl.ios.git + + pushd ./ppl.ios/ + +echo "" +echo "Now installing cocoapods for app" +echo "(this may take 20 minutes to initialize the first time)" +echo "" + # ~/git.ppl.family/ppl/ppl.ios + pods install # WARNING: The base pod system is ~550MiB!! + # This may take a while (maybe 20 minutes download + install) +echo "" +echo "Now we're gonna open the code folder for you..." + open ./ +sleep 2 +echo "" +echo "#####################" +echo "# LISTEN CAREFULLY #" +echo "#####################" +echo "" +echo "1. Open XCode" +echo "2. Go to XCode > Preferences > Accounts" +echo "3. Sign in with your iTunes account" +echo "4. You should see your name under Team. Double click that and click the + to add a Development Certificate for your local machine." +echo "" +echo "5. Open SyncApp.xcodeproj" +echo "6. Change the TEAM SETTINGS to your iTunes account" +echo "7. Change the PROJECT ID to com.example.SyncApp" +echo "8. Close SyncApp.xcodeproj" +echo "9. Quit XCode" +echo "" +echo "10. Connect your iPhone via USB Lightning" +echo "11. Open SyncApp.xcworkspace" +echo "12. Hit the Play button in the top" +echo "" +echo "If you're really, really lucky it'll all work"