diff --git a/package.json b/package.json index 25ce4dd..bbd1a69 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "start": "ts-node -r dotenv/config ./bin/index.ts -d ./dist -f \"**/*.js.map\"", "start:sym": "ts-node -r dotenv/config ./bin/index.ts -d ./spec -f \"**/*.sym\"", "start:pdb": "ts-node -r dotenv/config ./bin/index.ts -d ./spec -f \"**/*.+(exe|dll|pdb)\"", - "start:dsym": "ts-node -r dotenv/config ./bin/index.ts -d ./spec -f \"**/*.dSYM\" -a BugSplatTester -v \"1.0 (1)\"", + "start:dsym": "ts-node -r dotenv/config ./bin/index.ts -d ./spec/support -f \"*.dSYM\" -a BugSplatTester -v \"1.0 (1)\"", + "start:xcarchive": "ts-node -r dotenv/config ./bin/index.ts -d ./spec/support -f \"*.xcarchive/**/*.dSYM\" -v \"4.5.6 (1)\"", "test": "ts-node node_modules/jasmine/bin/jasmine", "help": "ts-node ./bin/index.ts -h", "clean": "rimraf ./dist", diff --git a/spec/dsym.spec.ts b/spec/dsym.spec.ts index 939e698..8eac9fa 100644 --- a/spec/dsym.spec.ts +++ b/spec/dsym.spec.ts @@ -9,16 +9,16 @@ describe('dsym', () => { it('should return path, relativePath, dbgIds, module names for macho files', () => { return expectAsync(getDSymFileInfos('spec/support/bugsplat.app.dSYM')).toBeResolvedTo(jasmine.arrayContaining([ { - path: jasmine.stringContaining('/symbol-upload/tmp/2dd1bd2706fa384da5a3a8265921cf9a/bugsplat'), - relativePath: '2dd1bd2706fa384da5a3a8265921cf9a/bugsplat', + path: jasmine.stringContaining('/symbol-upload/tmp/2dd1bd2706fa384da5a3a8265921cf9a/BugsplatTester'), + relativePath: '2dd1bd2706fa384da5a3a8265921cf9a/BugsplatTester', dbgId: '2dd1bd2706fa384da5a3a8265921cf9a', - moduleName: 'bugsplat', + moduleName: 'BugsplatTester', }, { - path: jasmine.stringContaining('/Users/bobby/Desktop/bugsplat/symbol-upload/tmp/2ce192f6c5963e66b06aa22bde5756a0/bugsplat'), - relativePath: '2ce192f6c5963e66b06aa22bde5756a0/bugsplat', + path: jasmine.stringContaining('/Users/bobby/Desktop/bugsplat/symbol-upload/tmp/2ce192f6c5963e66b06aa22bde5756a0/BugsplatTester'), + relativePath: '2ce192f6c5963e66b06aa22bde5756a0/BugsplatTester', dbgId: '2ce192f6c5963e66b06aa22bde5756a0', - moduleName: 'bugsplat', + moduleName: 'BugsplatTester', } ])); }); diff --git a/spec/support/bugsplat.xcarchive/Info.plist b/spec/support/bugsplat.xcarchive/Info.plist new file mode 100644 index 0000000..eab21d1 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Info.plist @@ -0,0 +1,34 @@ + + + + + ApplicationProperties + + ApplicationPath + Applications/BugsplatTester.app + Architectures + + x86_64 + arm64 + + CFBundleIdentifier + com.bugsplat.BugsplatTester + CFBundleShortVersionString + 4.5.6 + CFBundleVersion + 1 + SigningIdentity + + Team + + + ArchiveVersion + 2 + CreationDate + 2024-02-12T21:52:50Z + Name + BugsplatTester + SchemeName + BugsplatTester + + diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/BugsplatMac b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/BugsplatMac new file mode 120000 index 0000000..927bdb6 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/BugsplatMac @@ -0,0 +1 @@ +Versions/Current/BugsplatMac \ No newline at end of file diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Resources b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Resources new file mode 120000 index 0000000..953ee36 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/BugsplatMac b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/BugsplatMac new file mode 100755 index 0000000..7e2127d Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/BugsplatMac differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Assets.car b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Assets.car new file mode 100644 index 0000000..543120f Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Assets.car differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects-101300.nib b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects-101300.nib new file mode 100644 index 0000000..d4ec824 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects-101300.nib differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects.nib b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects.nib new file mode 100644 index 0000000..2bcd8c9 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/BITCrashReportUI.nib/keyedobjects.nib differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Info.plist b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Info.plist new file mode 100644 index 0000000..0164d5a --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,50 @@ + + + + + BuildMachineOSBuild + 21G72 + CFBundleDevelopmentRegion + en + CFBundleExecutable + BugsplatMac + CFBundleIdentifier + com.bugsplat.BugsplatMac + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + BugsplatMac + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.1.1 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 14A400 + DTPlatformName + macosx + DTPlatformVersion + 12.3 + DTSDKBuild + 21E226 + DTSDKName + macosx12.3 + DTXcode + 1401 + DTXcodeBuild + 14A400 + LSMinimumSystemVersion + 10.9 + NSHumanReadableCopyright + Copyright © 2016 Bugsplat. All rights reserved. + + diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/de.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/de.lproj/HockeySDK.strings new file mode 100644 index 0000000..df82980 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/de.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/en.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/en.lproj/HockeySDK.strings new file mode 100644 index 0000000..c9b3750 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/en.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fi.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fi.lproj/HockeySDK.strings new file mode 100644 index 0000000..2f2f7fb Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fi.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fr.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fr.lproj/HockeySDK.strings new file mode 100644 index 0000000..f7c68e1 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/fr.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/it.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/it.lproj/HockeySDK.strings new file mode 100644 index 0000000..5634156 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/it.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/ja.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/ja.lproj/HockeySDK.strings new file mode 100644 index 0000000..9c8e96b Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/ja.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/nb.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/nb.lproj/HockeySDK.strings new file mode 100644 index 0000000..2cb8932 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/nb.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/sv.lproj/HockeySDK.strings b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/sv.lproj/HockeySDK.strings new file mode 100644 index 0000000..5807f82 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/sv.lproj/HockeySDK.strings differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive-cl.sh b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive-cl.sh new file mode 100755 index 0000000..f2d7958 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive-cl.sh @@ -0,0 +1,81 @@ +#!/bin/bash +# +# (Above line comes out when placing in Xcode scheme) +# + +LOG="/tmp/bugsplat-upload.log" + +if [ ! -f "${HOME}/.bugsplat.conf" ] +then + echo "Missing bugsplat config file: ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +source "${HOME}/.bugsplat.conf" + +if [ -z "${BUGSPLAT_USER}" ] +then + echo "BUGSPLAT_USER must be set in ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +if [ -z "${BUGSPLAT_PASS}" ] +then + echo "BUGSPLAT_PASS must be set in ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +DATE=$( /bin/date +"%Y-%m-%d" ) +ARCHIVE_DIR="${HOME}/Library/Developer/Xcode/Archives/${DATE}" +ARCHIVE=$( /bin/ls -t "${ARCHIVE_DIR}" | /usr/bin/grep xcarchive | /usr/bin/sed -n 1p ) + +echo "Archive: ${ARCHIVE}" >> $LOG 2>&1 + +APP_DIR="${ARCHIVE_DIR}/${ARCHIVE}/Products/usr/local/bin" +APP="${APP_DIR}/${PRODUCT_NAME}" +echo "APP: ${APP}" >> $LOG 2>&1 +pushd "${APP_DIR}" + +INFO_PLIST="/tmp/${PRODUCT_NAME}-Info.plist" +rm ${INFO_PLIST} +otool -X -s __TEXT __info_plist ${PRODUCT_NAME} | sed 's/Contents.*//' | xxd -r >> $INFO_PLIST 2>&1 + +APP_MARKETING_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFO_PLIST}") +APP_BUNDLE_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFO_PLIST}") + +echo "App marketing version: ${APP_MARKETING_VERSION}" >> $LOG 2>&1 +echo "App bundle version: ${APP_BUNDLE_VERSION}" >> $LOG 2>&1 + +APP_VERSION="${APP_MARKETING_VERSION}" + +if [ -n "${APP_BUNDLE_VERSION}" ] +then + APP_VERSION="${APP_VERSION} (${APP_BUNDLE_VERSION})" +fi + +BUGSPLAT_SERVER_URL=$(/usr/libexec/PlistBuddy -c "Print BugsplatServerURL" "${INFO_PLIST}") +BUGSPLAT_SERVER_URL=${BUGSPLAT_SERVER_URL%/} + +UPLOAD_URL="${BUGSPLAT_SERVER_URL}/post/plCrashReporter/symbol/" + +echo "App version: ${APP_VERSION}" >> $LOG 2>&1 +echo "Zipping ${ARCHIVE}" >> $LOG 2>&1 + +/bin/rm "/tmp/${PRODUCT_NAME}.xcarchive.zip" +cd "${ARCHIVE_DIR}/${ARCHIVE}" +/usr/bin/zip -r "/tmp/${PRODUCT_NAME}.xcarchive.zip" * +cd - + +UUID_CMD_OUT=$(xcrun dwarfdump --uuid "${APP}") +UUID_CMD_OUT=$([[ "${UUID_CMD_OUT}" =~ ^(UUID: )([0-9a-zA-Z\-]+) ]] && echo ${BASH_REMATCH[2]}) +echo "UUID found: ${UUID_CMD_OUT}" >> $LOG 2>&1 + +echo "Signing into bugsplat and storing session cookie for use in upload" >> $LOG 2>&1 + +COOKIEPATH="/tmp/bugsplat-cookie.txt" +rm "${COOKIEPATH}" +curl -b "${COOKIEPATH}" -c "${COOKIEPATH}" --data-urlencode "currusername=${BUGSPLAT_USER}" --data-urlencode "currpasswd=${BUGSPLAT_PASS}" "${BUGSPLAT_SERVER_URL}/browse/login.php" + +echo "Uploading /tmp/${PRODUCT_NAME}.xcarchive.zip to ${UPLOAD_URL}" >> $LOG 2>&1 + +curl -i -b "${COOKIEPATH}" -c "${COOKIEPATH}" -F filedata=@"/tmp/${PRODUCT_NAME}.xcarchive.zip" -F appName="${PRODUCT_NAME}" -F appVer="${APP_VERSION}" -F buildId="${UUID_CMD_OUT}" $UPLOAD_URL >> $LOG 2>&1 diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive.sh b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive.sh new file mode 100755 index 0000000..df5723f --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/A/Resources/upload-archive.sh @@ -0,0 +1,75 @@ +#!/bin/bash +# +# (Above line comes out when placing in Xcode scheme) +# + +LOG="/tmp/bugsplat-upload.log" + +if [ ! -f "${HOME}/.bugsplat.conf" ] +then + echo "Missing bugsplat config file: ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +source "${HOME}/.bugsplat.conf" + +if [ -z "${BUGSPLAT_USER}" ] +then + echo "BUGSPLAT_USER must be set in ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +if [ -z "${BUGSPLAT_PASS}" ] +then + echo "BUGSPLAT_PASS must be set in ~/.bugsplat.conf" >> $LOG 2>&1 + exit +fi + +DATE=$( /bin/date +"%Y-%m-%d" ) +ARCHIVE_DIR="${HOME}/Library/Developer/Xcode/Archives/${DATE}" +ARCHIVE=$( /bin/ls -t "${ARCHIVE_DIR}" | /usr/bin/grep xcarchive | /usr/bin/sed -n 1p ) + +echo "Archive: ${ARCHIVE}" > $LOG 2>&1 + +APP="${ARCHIVE_DIR}/${ARCHIVE}/Products/Applications/${PRODUCT_NAME}.app" +APP_MARKETING_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${APP}/Contents/Info.plist") +APP_BUNDLE_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${APP}/Contents/Info.plist") + +echo "App marketing version: ${APP_MARKETING_VERSION}" >> $LOG 2>&1 +echo "App bundle version: ${APP_BUNDLE_VERSION}" >> $LOG 2>&1 + +APP_VERSION="${APP_MARKETING_VERSION}" + +if [ -n "${APP_BUNDLE_VERSION}" ] +then + APP_VERSION="${APP_VERSION} (${APP_BUNDLE_VERSION})" +fi + +BUGSPLAT_SERVER_URL=$(/usr/libexec/PlistBuddy -c "Print BugsplatServerURL" "${APP}/Contents/Info.plist") +BUGSPLAT_SERVER_URL=${BUGSPLAT_SERVER_URL%/} + +UPLOAD_URL="${BUGSPLAT_SERVER_URL}/post/plCrashReporter/symbol/" + +echo "App version: ${APP_VERSION}" >> $LOG 2>&1 +echo "Zipping ${ARCHIVE}" >> $LOG 2>&1 + +/bin/rm "/tmp/${PRODUCT_NAME}.xcarchive.zip" +cd "${ARCHIVE_DIR}/${ARCHIVE}" +/usr/bin/zip -r "/tmp/${PRODUCT_NAME}.xcarchive.zip" * +cd - + +UUID_CMD_OUT=$(xcrun dwarfdump --uuid "${APP}/Contents/MacOS/${PRODUCT_NAME}") +UUID_CMD_OUT=$([[ "${UUID_CMD_OUT}" =~ ^(UUID: )([0-9a-zA-Z\-]+) ]] && echo ${BASH_REMATCH[2]}) +echo "UUID found: ${UUID_CMD_OUT}" > $LOG 2>&1 + +echo "Signing into bugsplat and storing session cookie for use in upload" >> $LOG 2>&1 + +COOKIEPATH="/tmp/bugsplat-cookie.txt" +LOGIN_URL="${BUGSPLAT_SERVER_URL}/browse/login.php" +echo "Login URL: ${LOGIN_URL}" +rm "${COOKIEPATH}" +curl -b "${COOKIEPATH}" -c "${COOKIEPATH}" --data-urlencode "currusername=${BUGSPLAT_USER}" --data-urlencode "currpasswd=${BUGSPLAT_PASS}" "${LOGIN_URL}" + +echo "Uploading /tmp/${PRODUCT_NAME}.xcarchive.zip to ${UPLOAD_URL}" >> $LOG 2>&1 + +curl -i -b "${COOKIEPATH}" -c "${COOKIEPATH}" -F filedata=@"/tmp/${PRODUCT_NAME}.xcarchive.zip" -F appName="${PRODUCT_NAME}" -F appVer="${APP_VERSION}" -F buildId="${UUID_CMD_OUT}" $UPLOAD_URL >> $LOG 2>&1 diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/Current b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/Current new file mode 120000 index 0000000..8c7e5a6 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Frameworks/BugsplatMac.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Info.plist b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Info.plist new file mode 100644 index 0000000..0828436 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Info.plist @@ -0,0 +1,56 @@ + + + + + BugsplatServerURL + https://bobby_testing_2.bugsplat.com/ + BuildMachineOSBuild + 23D56 + CFBundleDevelopmentRegion + en + CFBundleExecutable + BugsplatTester + CFBundleIdentifier + com.bugsplat.BugsplatTester + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + BugsplatTester + CFBundlePackageType + APPL + CFBundleShortVersionString + 4.5.6 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + + DTPlatformName + macosx + DTPlatformVersion + 14.2 + DTSDKBuild + 23C53 + DTSDKName + macosx14.2 + DTXcode + 1520 + DTXcodeBuild + 15C500b + LSMinimumSystemVersion + 10.13 + NSHumanReadableCopyright + Copyright © 2018 BugSplat. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/MacOS/BugsplatTester b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/MacOS/BugsplatTester new file mode 100755 index 0000000..48cb8bf Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/MacOS/BugsplatTester differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/PkgInfo b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/PkgInfo new file mode 100644 index 0000000..bd04210 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/Base.lproj/MainMenu.nib b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/Base.lproj/MainMenu.nib new file mode 100644 index 0000000..b2bb372 Binary files /dev/null and b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/Base.lproj/MainMenu.nib differ diff --git a/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/generated.json b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/generated.json new file mode 100644 index 0000000..87934e5 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Products/Applications/BugsplatTester.app/Contents/Resources/generated.json @@ -0,0 +1,227 @@ +[ + { + "_id": "5a7f0f04c630d61530bc361e", + "index": 0, + "guid": "58c75175-f79d-4068-96f3-e3551535aa8e", + "isActive": true, + "balance": "$3,671.34", + "picture": "http://placehold.it/32x32", + "age": 31, + "eyeColor": "green", + "name": "Mcdonald Baird", + "gender": "male", + "company": "IMMUNICS", + "email": "mcdonaldbaird@immunics.com", + "phone": "+1 (967) 582-2693", + "address": "646 Emerson Place, Taycheedah, North Dakota, 9765", + "about": "Cupidatat aliquip labore duis ex ipsum. Cupidatat dolore consectetur duis nulla. Nulla et duis sint eiusmod eiusmod eu cillum in et quis labore amet pariatur laborum. Do minim eiusmod velit nulla pariatur amet esse reprehenderit et excepteur.\r\n", + "registered": "2017-03-02T03:34:01 +05:00", + "latitude": -27.014839, + "longitude": -52.322988, + "tags": [ + "ex", + "adipisicing", + "veniam", + "cupidatat", + "ipsum", + "culpa", + "duis" + ], + "friends": [ + { + "id": 0, + "name": "Fitzgerald Hale" + }, + { + "id": 1, + "name": "Mccarthy Hopkins" + }, + { + "id": 2, + "name": "Rosie Monroe" + } + ], + "greeting": "Hello, Mcdonald Baird! You have 2 unread messages.", + "favoriteFruit": "strawberry" + }, + { + "_id": "5a7f0f049f081ccebec6ce55", + "index": 1, + "guid": "2b37f6fe-1273-4c58-988c-7dbc6ef9c738", + "isActive": true, + "balance": "$3,490.50", + "picture": "http://placehold.it/32x32", + "age": 20, + "eyeColor": "brown", + "name": "Warner Clarke", + "gender": "male", + "company": "VIAGREAT", + "email": "warnerclarke@viagreat.com", + "phone": "+1 (888) 542-3665", + "address": "912 Columbia Street, Lawrence, Federated States Of Micronesia, 1751", + "about": "Sunt occaecat ea aute officia commodo. Cupidatat labore elit adipisicing nisi quis adipisicing adipisicing exercitation cillum ea mollit. Qui eu laboris nulla proident. Deserunt magna consectetur laboris ad. Tempor ut aliqua nulla aute et sunt reprehenderit ex cupidatat ad sit. Dolor laborum eiusmod in proident exercitation duis ea cupidatat ullamco consequat pariatur aliquip quis ea.\r\n", + "registered": "2014-12-16T08:17:05 +05:00", + "latitude": 26.420995, + "longitude": 89.457342, + "tags": [ + "culpa", + "qui", + "excepteur", + "cillum", + "ipsum", + "deserunt", + "dolor" + ], + "friends": [ + { + "id": 0, + "name": "Vega Diaz" + }, + { + "id": 1, + "name": "Armstrong Moody" + }, + { + "id": 2, + "name": "Yang Valdez" + } + ], + "greeting": "Hello, Warner Clarke! You have 1 unread messages.", + "favoriteFruit": "apple" + }, + { + "_id": "5a7f0f04efe52e7ca9fd6044", + "index": 2, + "guid": "bb1f6074-42cc-4fef-87ef-bc1d7e26b516", + "isActive": true, + "balance": "$1,139.58", + "picture": "http://placehold.it/32x32", + "age": 39, + "eyeColor": "green", + "name": "Beverly Grant", + "gender": "female", + "company": "IMANT", + "email": "beverlygrant@imant.com", + "phone": "+1 (913) 544-3298", + "address": "127 Ide Court, Kidder, District Of Columbia, 2161", + "about": "Qui non excepteur sint nisi laborum sint proident. Quis magna ea anim quis pariatur culpa qui non id mollit duis laborum ex. Elit enim occaecat laboris sit veniam ad aliquip commodo ex tempor ullamco ea.\r\n", + "registered": "2017-05-17T03:54:08 +04:00", + "latitude": -75.637843, + "longitude": -70.040151, + "tags": [ + "velit", + "non", + "aliquip", + "anim", + "nulla", + "laborum", + "sint" + ], + "friends": [ + { + "id": 0, + "name": "Dillard Acevedo" + }, + { + "id": 1, + "name": "Hurst Jimenez" + }, + { + "id": 2, + "name": "Concepcion Morales" + } + ], + "greeting": "Hello, Beverly Grant! You have 4 unread messages.", + "favoriteFruit": "strawberry" + }, + { + "_id": "5a7f0f0423ba7c68ae827ce4", + "index": 3, + "guid": "3e21357b-ba48-4974-88d8-4b5766e9a69f", + "isActive": true, + "balance": "$1,436.49", + "picture": "http://placehold.it/32x32", + "age": 38, + "eyeColor": "blue", + "name": "Weaver Deleon", + "gender": "male", + "company": "ZENTRY", + "email": "weaverdeleon@zentry.com", + "phone": "+1 (902) 536-3378", + "address": "479 Green Street, Weeksville, Utah, 5017", + "about": "Eu quis laborum est do cillum esse nisi. Duis nostrud irure dolore incididunt eiusmod ut dolore est et ut officia. Id reprehenderit Lorem laboris nisi deserunt est. Exercitation aliqua exercitation mollit aute veniam magna duis sunt ea nisi dolore enim aliquip laboris. Dolor culpa labore ut amet reprehenderit incididunt ea culpa quis veniam id voluptate Lorem.\r\n", + "registered": "2015-05-18T07:06:20 +04:00", + "latitude": -26.86042, + "longitude": -76.980456, + "tags": [ + "ipsum", + "occaecat", + "incididunt", + "Lorem", + "consectetur", + "consectetur", + "adipisicing" + ], + "friends": [ + { + "id": 0, + "name": "Elisabeth Thornton" + }, + { + "id": 1, + "name": "Marcy Leon" + }, + { + "id": 2, + "name": "Lara Nixon" + } + ], + "greeting": "Hello, Weaver Deleon! You have 9 unread messages.", + "favoriteFruit": "apple" + }, + { + "_id": "5a7f0f04eec28f9afae0589c", + "index": 4, + "guid": "d1a79d93-5ba4-414e-9658-871927e22388", + "isActive": true, + "balance": "$2,363.66", + "picture": "http://placehold.it/32x32", + "age": 29, + "eyeColor": "blue", + "name": "Solis Bishop", + "gender": "male", + "company": "MULTIFLEX", + "email": "solisbishop@multiflex.com", + "phone": "+1 (949) 573-2234", + "address": "525 Bowne Street, Kirk, New Mexico, 2327", + "about": "Consectetur nulla est dolore commodo. Minim nisi mollit cillum Lorem sunt dolor nostrud. Cillum ea in Lorem sit aliquip in aliqua deserunt exercitation est quis. Anim laborum incididunt tempor nisi in irure magna cupidatat ea aute fugiat anim Lorem. Commodo magna commodo cupidatat mollit voluptate enim non. Ipsum commodo esse dolor proident qui enim. Fugiat eu excepteur elit duis amet dolor adipisicing non excepteur.\r\n", + "registered": "2015-09-29T01:20:08 +04:00", + "latitude": 49.571723, + "longitude": 76.081275, + "tags": [ + "nostrud", + "mollit", + "cupidatat", + "sint", + "culpa", + "elit", + "adipisicing" + ], + "friends": [ + { + "id": 0, + "name": "Merle Beck" + }, + { + "id": 1, + "name": "Noreen Clay" + }, + { + "id": 2, + "name": "Erica Curry" + } + ], + "greeting": "Hello, Solis Bishop! You have 3 unread messages.", + "favoriteFruit": "banana" + } +] \ No newline at end of file diff --git a/spec/support/bugsplat.xcarchive/Signatures/BugsplatMac.xcframework-macos.signature b/spec/support/bugsplat.xcarchive/Signatures/BugsplatMac.xcframework-macos.signature new file mode 100644 index 0000000..85b2edd --- /dev/null +++ b/spec/support/bugsplat.xcarchive/Signatures/BugsplatMac.xcframework-macos.signature @@ -0,0 +1,17 @@ + + + + + isSecureTimestamp + + metadata + + library + BugsplatMac.framework + platform + macos + + signed + + + diff --git a/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Info.plist b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Info.plist new file mode 100644 index 0000000..42b9712 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.com.bugsplat.BugsplatTester + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 4.5.6 + CFBundleVersion + 1 + + diff --git a/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/DWARF/BugsplatTester b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/DWARF/BugsplatTester new file mode 100644 index 0000000..85becea Binary files /dev/null and b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/DWARF/BugsplatTester differ diff --git a/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/aarch64/BugsplatTester.yml b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/aarch64/BugsplatTester.yml new file mode 100644 index 0000000..8c4c578 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/aarch64/BugsplatTester.yml @@ -0,0 +1,25 @@ +--- +triple: 'arm64-apple-darwin' +binary-path: '/Users/bobby/Library/Developer/Xcode/DerivedData/BugsplatTester-gunlfjosgoiioffesuafawoidafl/Build/Intermediates.noindex/ArchiveIntermediates/BugsplatTester/InstallationBuildProductsLocation/Applications/BugsplatTester.app/Contents/MacOS/BugsplatTester' +relocations: + - { offsetInCU: 0x27, offset: 0xC4BFE, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100002730, symSize: 0x4 } + - { offsetInCU: 0x3C, offset: 0xC4C13, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100002730, symSize: 0x4 } + - { offsetInCU: 0x76, offset: 0xC4C4D, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100002730, symSize: 0x4 } + - { offsetInCU: 0x27, offset: 0xC4CC5, size: 0x8, addend: 0x0, symName: '-[AppDelegate init]', symObjAddr: 0x0, symBinAddr: 0x100002734, symSize: 0x34 } + - { offsetInCU: 0x76, offset: 0xC4D14, size: 0x8, addend: 0x0, symName: '-[AppDelegate init]', symObjAddr: 0x0, symBinAddr: 0x100002734, symSize: 0x34 } + - { offsetInCU: 0xAD, offset: 0xC4D4B, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationWillFinishLaunching:]', symObjAddr: 0x34, symBinAddr: 0x100002768, symSize: 0x4 } + - { offsetInCU: 0xE8, offset: 0xC4D86, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationDidFinishLaunching:]', symObjAddr: 0x38, symBinAddr: 0x10000276C, symSize: 0x8C } + - { offsetInCU: 0x127, offset: 0xC4DC5, size: 0x8, addend: 0x0, symName: '-[AppDelegate performCrash]', symObjAddr: 0xC4, symBinAddr: 0x1000027F8, symSize: 0x10 } + - { offsetInCU: 0x176, offset: 0xC4E14, size: 0x8, addend: 0x0, symName: '-[AppDelegate crash:]', symObjAddr: 0xD4, symBinAddr: 0x100002808, symSize: 0x4 } + - { offsetInCU: 0x1B3, offset: 0xC4E51, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationLogForBugsplatStartupManager:]', symObjAddr: 0xD8, symBinAddr: 0x10000280C, symSize: 0x8 } + - { offsetInCU: 0x238, offset: 0xC4ED6, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillShowSubmitCrashReportAlert:]', symObjAddr: 0xE0, symBinAddr: 0x100002814, symSize: 0x48 } + - { offsetInCU: 0x28E, offset: 0xC4F2C, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillCancelSendingCrashReport:]', symObjAddr: 0x128, symBinAddr: 0x10000285C, symSize: 0x48 } + - { offsetInCU: 0x2E4, offset: 0xC4F82, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillSendCrashReport:]', symObjAddr: 0x170, symBinAddr: 0x1000028A4, symSize: 0x48 } + - { offsetInCU: 0x33A, offset: 0xC4FD8, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerDidFinishSendingCrashReport:]', symObjAddr: 0x1B8, symBinAddr: 0x1000028EC, symSize: 0x48 } + - { offsetInCU: 0x390, offset: 0xC502E, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManager:didFailWithError:]', symObjAddr: 0x200, symBinAddr: 0x100002934, symSize: 0x60 } + - { offsetInCU: 0x3F5, offset: 0xC5093, size: 0x8, addend: 0x0, symName: '-[AppDelegate attachmentsForBugsplatStartupManager:]', symObjAddr: 0x260, symBinAddr: 0x100002994, symSize: 0x174 } + - { offsetInCU: 0x4A0, offset: 0xC513E, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationKeyForBugsplatStartupManager:signal:exceptionName:exceptionReason:]', symObjAddr: 0x3D4, symBinAddr: 0x100002B08, symSize: 0x34 } + - { offsetInCU: 0x50F, offset: 0xC51AD, size: 0x8, addend: 0x0, symName: '-[AppDelegate window]', symObjAddr: 0x408, symBinAddr: 0x100002B3C, symSize: 0x18 } + - { offsetInCU: 0x546, offset: 0xC51E4, size: 0x8, addend: 0x0, symName: '-[AppDelegate setWindow:]', symObjAddr: 0x420, symBinAddr: 0x100002B54, symSize: 0xC } + - { offsetInCU: 0x587, offset: 0xC5225, size: 0x8, addend: 0x0, symName: '-[AppDelegate .cxx_destruct]', symObjAddr: 0x42C, symBinAddr: 0x100002B60, symSize: 0x8 } +... diff --git a/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/x86_64/BugsplatTester.yml b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/x86_64/BugsplatTester.yml new file mode 100644 index 0000000..99eb3d8 --- /dev/null +++ b/spec/support/bugsplat.xcarchive/dSYMs/BugsplatTester.app.dSYM/Contents/Resources/Relocations/x86_64/BugsplatTester.yml @@ -0,0 +1,24 @@ +--- +triple: 'x86_64-apple-darwin' +binary-path: '/Users/bobby/Library/Developer/Xcode/DerivedData/BugsplatTester-gunlfjosgoiioffesuafawoidafl/Build/Intermediates.noindex/ArchiveIntermediates/BugsplatTester/InstallationBuildProductsLocation/Applications/BugsplatTester.app/Contents/MacOS/BugsplatTester' +relocations: + - { offsetInCU: 0x27, offset: 0xC7D56, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x1000029F9, symSize: 0xA } + - { offsetInCU: 0x3C, offset: 0xC7D6B, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x1000029F9, symSize: 0xA } + - { offsetInCU: 0x27, offset: 0xC7E1D, size: 0x8, addend: 0x0, symName: '-[AppDelegate init]', symObjAddr: 0x0, symBinAddr: 0x100002A03, symSize: 0x2F } + - { offsetInCU: 0x76, offset: 0xC7E6C, size: 0x8, addend: 0x0, symName: '-[AppDelegate init]', symObjAddr: 0x0, symBinAddr: 0x100002A03, symSize: 0x2F } + - { offsetInCU: 0xAD, offset: 0xC7EA3, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationWillFinishLaunching:]', symObjAddr: 0x2F, symBinAddr: 0x100002A32, symSize: 0x6 } + - { offsetInCU: 0xE8, offset: 0xC7EDE, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationDidFinishLaunching:]', symObjAddr: 0x35, symBinAddr: 0x100002A38, symSize: 0xBF } + - { offsetInCU: 0x1BA, offset: 0xC7FB0, size: 0x8, addend: 0x0, symName: '-[AppDelegate performCrash]', symObjAddr: 0xF4, symBinAddr: 0x100002AF7, symSize: 0xE } + - { offsetInCU: 0x1F6, offset: 0xC7FEC, size: 0x8, addend: 0x0, symName: '-[AppDelegate crash:]', symObjAddr: 0x102, symBinAddr: 0x100002B05, symSize: 0x12 } + - { offsetInCU: 0x248, offset: 0xC803E, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationLogForBugsplatStartupManager:]', symObjAddr: 0x114, symBinAddr: 0x100002B17, symSize: 0xD } + - { offsetInCU: 0x2CB, offset: 0xC80C1, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillShowSubmitCrashReportAlert:]', symObjAddr: 0x121, symBinAddr: 0x100002B24, symSize: 0x39 } + - { offsetInCU: 0x32C, offset: 0xC8122, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillCancelSendingCrashReport:]', symObjAddr: 0x15A, symBinAddr: 0x100002B5D, symSize: 0x39 } + - { offsetInCU: 0x38D, offset: 0xC8183, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerWillSendCrashReport:]', symObjAddr: 0x193, symBinAddr: 0x100002B96, symSize: 0x39 } + - { offsetInCU: 0x3EE, offset: 0xC81E4, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManagerDidFinishSendingCrashReport:]', symObjAddr: 0x1CC, symBinAddr: 0x100002BCF, symSize: 0x39 } + - { offsetInCU: 0x44F, offset: 0xC8245, size: 0x8, addend: 0x0, symName: '-[AppDelegate bugsplatStartupManager:didFailWithError:]', symObjAddr: 0x205, symBinAddr: 0x100002C08, symSize: 0x5F } + - { offsetInCU: 0x4E9, offset: 0xC82DF, size: 0x8, addend: 0x0, symName: '-[AppDelegate attachmentsForBugsplatStartupManager:]', symObjAddr: 0x264, symBinAddr: 0x100002C67, symSize: 0x1A6 } + - { offsetInCU: 0x69E, offset: 0xC8494, size: 0x8, addend: 0x0, symName: '-[AppDelegate applicationKeyForBugsplatStartupManager:signal:exceptionName:exceptionReason:]', symObjAddr: 0x40A, symBinAddr: 0x100002E0D, symSize: 0x26 } + - { offsetInCU: 0x72C, offset: 0xC8522, size: 0x8, addend: 0x0, symName: '-[AppDelegate window]', symObjAddr: 0x430, symBinAddr: 0x100002E33, symSize: 0x16 } + - { offsetInCU: 0x763, offset: 0xC8559, size: 0x8, addend: 0x0, symName: '-[AppDelegate setWindow:]', symObjAddr: 0x446, symBinAddr: 0x100002E49, symSize: 0x11 } + - { offsetInCU: 0x7A2, offset: 0xC8598, size: 0x8, addend: 0x0, symName: '-[AppDelegate .cxx_destruct]', symObjAddr: 0x457, symBinAddr: 0x100002E5A, symSize: 0xE } +... diff --git a/src/dsym.ts b/src/dsym.ts index d3c5074..c460233 100644 --- a/src/dsym.ts +++ b/src/dsym.ts @@ -1,8 +1,8 @@ -import { createMachoFiles, FatFile } from 'macho-uuid'; +import { createMachoFiles } from 'macho-uuid'; import { mkdir } from 'node:fs/promises'; -import { dirname, join, sep } from 'node:path'; -import { tmpDir } from './tmp'; +import { basename, dirname, join } from 'node:path'; import { SymbolFileInfo } from './info'; +import { tmpDir } from './tmp'; export async function getDSymFileInfos(path: string): Promise { try { @@ -15,7 +15,7 @@ export async function getDSymFileInfos(path: string): Promise return Promise.all( machoFiles.map(async (macho) => { const dbgId = await macho.getUUID(); - const moduleName = normalizeModuleName(dirname(macho.path).split(sep).find(part => part.toLowerCase().includes('.dsym'))!); + const moduleName = basename(macho.path); const relativePath = join(await macho.getUUID(), moduleName) const path = join(tmpDir, relativePath); await mkdir(dirname(path), { recursive: true }); diff --git a/src/upload.ts b/src/upload.ts index 1355aa8..4e4aa49 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -21,7 +21,7 @@ export async function uploadSymbolFiles(bugsplat: ApiClient, database: string, a console.log(`Found files:\n ${symbolFilePaths.join('\n')}`); console.log(`About to upload symbols for ${database}-${application}-${version}...`); - + const symbolsApiClient = new SymbolsApiClient(bugsplat); const versionsApiClient = new VersionsApiClient(bugsplat); const symbolFiles = await Promise.all( @@ -75,10 +75,9 @@ async function createSymbolFileInfos(searchDirectory: string, symbolFilePath: st } as SymbolFileInfo]; } - // TODO BG enable when the backend is ready - // if (isDsymFile) { - // return getDSymFileInfos(path); - // } + if (isDsymFile) { + return getDSymFileInfos(path); + } const dbgId = ''; const moduleName = basename(path);