You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo' (i) The IPA path is now available in the Environment Variable: $BITRISE_IPA_PATH'
147
149
150
+
set -v
151
+
152
+
153
+
#
154
+
# dSYM handling
155
+
# get the .app.dSYM folders from the dSYMs archive folder
156
+
archive_dsyms_folder="${archive_path}/dSYMs"
157
+
ls "${archive_dsyms_folder}"
158
+
app_dsym_count=0
159
+
app_dsym_path=""
160
+
161
+
IFS=$'\n'
162
+
fora_app_dsymin$(find "${archive_dsyms_folder}" -type d -name "*.app.dSYM");do
163
+
echo" (i) .app.dSYM found: ${a_app_dsym}"
164
+
app_dsym_count=$[app_dsym_count + 1]
165
+
app_dsym_path="${a_app_dsym}"
166
+
echo" (i) app_dsym_count: $app_dsym_count"
167
+
done
168
+
unset IFS
169
+
170
+
echo" (i) Found dSYM count: ${app_dsym_count}"
171
+
if [ ${app_dsym_count}-eq 1 ] ;then
172
+
echo"* dSYM found at: ${app_dsym_path}"
173
+
if [ -d"${app_dsym_path}" ] ;then
174
+
export DSYM_PATH="${app_dsym_path}"
175
+
else
176
+
echo"* (i) *Found dSYM path is not a directory!*"
177
+
fi
178
+
else
179
+
if [ ${app_dsym_count}-eq 0 ] ;then
180
+
echo"* (i) **No dSYM found!** To generate debug symbols (dSYM) go to your Xcode Project's Settings - *Build Settings - Debug Information Format* and set it to *DWARF with dSYM File*."
181
+
else
182
+
echo"* (i) *More than one dSYM found!*"
183
+
fi
184
+
fi
185
+
186
+
# Generate dSym zip
187
+
if [[ !-z"${DSYM_PATH}"&&-d"${DSYM_PATH}" ]] ;then
188
+
echo"Generating zip for dSym"
189
+
190
+
dsym_parent_folder=$( dirname "${DSYM_PATH}")
191
+
dsym_fold_name=$( basename "${DSYM_PATH}")
192
+
# cd into dSYM parent to not to store full
193
+
# paths in the ZIP
194
+
cd"${dsym_parent_folder}"
195
+
/usr/bin/zip -rTy \
196
+
"${dsym_zip_path}" \
197
+
"${dsym_fold_name}"
198
+
199
+
echo" (i) The IPA is now available at: ${dsym_zip_path}"
0 commit comments