-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgenerate_xcode_project.sh
More file actions
executable file
·52 lines (40 loc) · 1.6 KB
/
generate_xcode_project.sh
File metadata and controls
executable file
·52 lines (40 loc) · 1.6 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# ==============================================================================
# 🎨 White-Label Configuration
# Edit the values below to customize the build before generating the project.
# ==============================================================================
# App Identity
export APP_NAME="HelloXR"
export BUNDLE_ID="com.wemtechnology.helloxr"
export VERSION="1.3.0"
export BUILD_NUMBER="1"
# The domain used for Associated Domains (Universal Links / App Clips)
export DOMAIN_URL="helloxr.app"
# The default URL the WebView will load on launch
export START_URL="https://helloxr.app"
# Signing
# Enter your Apple Development Team ID (Found at developer.apple.com/account)
# e.g., "A1B2C3D4E5"
export DEVELOPMENT_TEAM="YOUR_TEAM_ID_HERE"
# Assets
# Place a 1024x1024 PNG in the root folder and reference it here.
# If this file is missing, the script will auto-download a placeholder.
export ICON_SOURCE="icon.png"
# ==============================================================================
# ⚙️ Generation Logic
# ==============================================================================
set -e
# Check if XcodeGen is installed
if ! command -v xcodegen &> /dev/null; then
echo "❌ Error: xcodegen is not installed."
echo " Please run: brew install xcodegen"
exit 1
fi
echo "🚀 Generating Xcode Project for: $APP_NAME"
echo " Bundle ID: $BUNDLE_ID"
echo " Start URL: $START_URL"
# Generate the project using the variables exported above
xcodegen generate
echo "✅ Project generated successfully!"
echo "📂 Opening $APP_NAME.xcodeproj..."
open "$APP_NAME.xcodeproj"