-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
44 lines (44 loc) · 1.59 KB
/
Copy pathcodemagic.yaml
File metadata and controls
44 lines (44 loc) · 1.59 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
workflows:
ios-workflow:
name: iOS Workflow
max_build_duration: 120
instance_type: mac_mini_m2
integrations:
app_store_connect: JamKeys
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: com.hyrumKonja.JamKeys
vars:
BUNDLE_ID: AppBundle
XCODE_PROJECT: "JamKeys.xcodeproj"
XCODE_SCHEME: "JamKeys"
APP_STORE_APPLE_ID: 6794278558
xcode: latest
scripts:
- name: Clean Xcode user data
script: |
COUNT=$(find "$CM_BUILD_DIR" -type d -name "xcuserdata" 2>/dev/null | wc -l | tr -d ' ')
if [ "$COUNT" -gt 0 ]; then
echo "🔎 Found $COUNT xcuserdata director(ies):"
find "$CM_BUILD_DIR" -type d -name "xcuserdata" 2>/dev/null
find "$CM_BUILD_DIR" -type d -name "xcuserdata" -prune -exec rm -rf {} + 2>/dev/null
echo "✅ Removed $COUNT xcuserdata director(ies)"
else
echo "ℹ️ No xcuserdata found (repo already clean)"
fi
- name: Set up provisioning profiles settings on Xcode project
script: xcode-project use-profiles
- name: Build ipa for distribution
script: |
xcode-project build-ipa \
--project "$CM_BUILD_DIR/$XCODE_PROJECT" \
--scheme "$XCODE_SCHEME"
artifacts:
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
app_store_connect:
auth: integration