-
Notifications
You must be signed in to change notification settings - Fork 539
/
setup.sh
executable file
·40 lines (30 loc) · 1.11 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
cat << "EOF"
__ _ ____ ____ __ _ ____ _ _ ____ _ _ __ ____ ____
( ( \( __)(_ _)( ( \( __)/ )( \/ ___)/ )( \( )( _ \( __)
/ / ) _) )( / / ) _) \ /\ /\___ \\ /\ / )( ) / ) _)
\_)__)(____) (__) \_)__)(____)(_/\_)(____/(_/\_)(__)(__\_)(____)
EOF
echo This script will create a SharedXcodeSettings folder and a DeveloperSettings.xcconfig file.
echo
echo We need to ask a few questions first.
echo
read -p "Press enter to get started."
# Get the user's Developer Team ID
echo 1. What is your Developer Team ID? You can get this from developer.apple.com.
read devTeamID
# Get the user's Org Identifier
echo 2. What is your organisation identifier? e.g. com.developername
read devOrgName
echo Creating SharedXcodeSettings Folder
mkdir -p ../SharedXcodeSettings
echo Creating DeveloperSettings.xcconfig
cat <<file >> ../SharedXcodeSettings/DeveloperSettings.xcconfig
CODE_SIGN_IDENTITY = Mac Developer
DEVELOPMENT_TEAM = $devTeamID
CODE_SIGN_STYLE = Automatic
ORGANIZATION_IDENTIFIER = $devOrgName
DEVELOPER_ENTITLEMENTS = -dev
PROVISIONING_PROFILE_SPECIFIER =
file
echo Done!