-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
126 lines (124 loc) · 4.41 KB
/
Copy pathcodemagic.yaml
File metadata and controls
126 lines (124 loc) · 4.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
workflows:
chainscope-ios-unsigned-check:
name: ChainScope iOS - Unsigned Build Check
max_build_duration: 60
instance_type: mac_mini_m2
environment:
vars:
XCODE_PROJECT: "ios/ChainScopeAI/ChainScopeAI.xcodeproj"
XCODE_SCHEME: "ChainScopeAI"
BUNDLE_ID: "ai.chainscope.mobile.ios"
xcode: latest
scripts:
- name: Show build environment
script: |
set -e
xcodebuild -version
xcodebuild -list -project "$CM_BUILD_DIR/$XCODE_PROJECT"
- name: Build unsigned iOS simulator app
script: |
set -e
xcodebuild \
-project "$CM_BUILD_DIR/$XCODE_PROJECT" \
-scheme "$XCODE_SCHEME" \
-configuration Debug \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
build
artifacts:
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
chainscope-ios-sideloadly-ipa:
name: ChainScope iOS - Sideloadly IPA
max_build_duration: 60
instance_type: mac_mini_m2
environment:
vars:
XCODE_PROJECT: "ios/ChainScopeAI/ChainScopeAI.xcodeproj"
XCODE_SCHEME: "ChainScopeAI"
BUNDLE_ID: "ai.chainscope.mobile.ios"
xcode: latest
scripts:
- name: Show build environment
script: |
set -e
xcodebuild -version
xcodebuild -list -project "$CM_BUILD_DIR/$XCODE_PROJECT"
- name: Build unsigned iPhone device app
script: |
set -e
DERIVED_DATA="$CM_BUILD_DIR/build/DerivedData"
xcodebuild \
-project "$CM_BUILD_DIR/$XCODE_PROJECT" \
-scheme "$XCODE_SCHEME" \
-configuration Release \
-sdk iphoneos \
-destination 'generic/platform=iOS' \
-derivedDataPath "$DERIVED_DATA" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
PRODUCT_BUNDLE_IDENTIFIER="$BUNDLE_ID" \
clean build
- name: Package unsigned IPA for Sideloadly
script: |
set -e
APP_PATH="$(find "$CM_BUILD_DIR/build/DerivedData/Build/Products/Release-iphoneos" -maxdepth 1 -name '*.app' -print -quit)"
test -n "$APP_PATH"
rm -rf "$CM_BUILD_DIR/build/sideloadly"
mkdir -p "$CM_BUILD_DIR/build/sideloadly/Payload" "$CM_BUILD_DIR/build/ios/ipa"
cp -R "$APP_PATH" "$CM_BUILD_DIR/build/sideloadly/Payload/ChainScopeAI.app"
cd "$CM_BUILD_DIR/build/sideloadly"
zip -qry "$CM_BUILD_DIR/build/ios/ipa/ChainScopeAI-sideloadly-unsigned.ipa" Payload
artifacts:
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
chainscope-ios-testflight:
name: ChainScope iOS - App Store Connect Upload
max_build_duration: 120
instance_type: mac_mini_m2
integrations:
app_store_connect: chainscope-apple
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: ai.chainscope.mobile.ios
vars:
XCODE_PROJECT: "ios/ChainScopeAI/ChainScopeAI.xcodeproj"
XCODE_SCHEME: "ChainScopeAI"
BUNDLE_ID: "ai.chainscope.mobile.ios"
xcode: latest
scripts:
- name: Show build environment
script: |
set -e
xcodebuild -version
xcodebuild -list -project "$CM_BUILD_DIR/$XCODE_PROJECT"
- name: Apply App Store signing profiles
script: |
set -e
xcode-project use-profiles
- name: Set Codemagic build number
script: |
set -e
cd "$CM_BUILD_DIR/ios/ChainScopeAI"
agvtool new-version -all "$CM_BUILD_NUMBER" || true
- name: Build signed IPA
script: |
set -e
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
submit_to_testflight: false
submit_to_app_store: false