|
28 | 28 | xcrun vtool -show-build /tmp/yojam-volume/Yojam.app/Contents/MacOS/Yojam |
29 | 29 | codesign --verify --deep --strict --verbose=2 /tmp/yojam-volume/Yojam.app |
30 | 30 | spctl --assess --type execute --verbose=2 /tmp/yojam-volume/Yojam.app |
| 31 | + codesign --display --entitlements :- /tmp/yojam-volume/Yojam.app 2>&1 |
31 | 32 | sudo ditto /tmp/yojam-volume/Yojam.app /Applications/Yojam.app |
32 | 33 | hdiutil detach /tmp/yojam-volume |
33 | | - - name: Launch as an ordinary process |
| 34 | + /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Yojam.app |
| 35 | + - name: Reproduce and collect crash evidence |
34 | 36 | run: | |
35 | 37 | defaults delete com.yojam.app 2>/dev/null || true |
36 | 38 | launch_log=/tmp/yojam-launch.log |
|
58 | 60 | set -e |
59 | 61 | echo "Yojam exited early with status $app_status" |
60 | 62 | sed -n '1,240p' "$launch_log" |
61 | | - find "$HOME/Library/Logs/DiagnosticReports" -maxdepth 1 -type f -name 'Yojam*' -print -exec sed -n '1,320p' {} \; 2>/dev/null || true |
62 | | - log show --last 3m --style compact --predicate 'process == "Yojam" OR eventMessage CONTAINS[c] "Yojam"' 2>/dev/null | tail -500 || true |
| 63 | + sleep 15 |
| 64 | + find "$HOME/Library/Logs/DiagnosticReports" -maxdepth 1 -type f -name 'Yojam*' -print 2>/dev/null || true |
| 65 | + for report in "$HOME"/Library/Logs/DiagnosticReports/Yojam*; do |
| 66 | + if [ -f "$report" ]; then |
| 67 | + echo "CRASH_REPORT=$report" |
| 68 | + sed -n '1,500p' "$report" |
| 69 | + fi |
| 70 | + done |
| 71 | + log show --last 5m --style compact --predicate 'process == "Yojam" OR eventMessage CONTAINS[c] "Yojam"' 2>/dev/null | tail -800 || true |
| 72 | + echo 'LLDB_BACKTRACE_BEGIN' |
| 73 | + lldb --batch -o run -o 'thread backtrace all' -o quit -- /Applications/Yojam.app/Contents/MacOS/Yojam 2>&1 || true |
| 74 | + echo 'LLDB_BACKTRACE_END' |
63 | 75 | exit 1 |
0 commit comments