File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
sample/ios/sample.xcodeproj Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,26 @@ jobs:
9292 xcodebuild \
9393 -workspace sample.xcworkspace \
9494 -scheme "sample" \
95- -sdk iphonosimulator \
95+ -sdk iphonesimulator \
9696 -destination 'platform=iOS Simulator,OS=17.5,name=iPhone 15' \
9797 -only-testing:sampleTests \
98- test | bundle exec xcpretty && exit ${PIPESTATUS[0]}
99-
98+ test | bundle exec xcpretty && exit ${PIPESTATUS[0]}
99+ - name : Display Crash Logs
100+ if : failure() # This ensures the step runs only if 'Run tests' fails
101+ run : |
102+ CRASH_LOG_DIR=~/Library/Logs/DiagnosticReports
103+ echo "Searching for crash logs in ${CRASH_LOG_DIR}..."
104+ if [ -d "$CRASH_LOG_DIR" ]; then
105+ LATEST=$(ls -t "$CRASH_LOG_DIR"/sample*.crash 2>/dev/null | head -n 1)
106+ if [ -n "$LATEST" ]; then
107+ echo "--- Displaying Crash Log: $LATEST ---"
108+ cat "$LATEST"
109+ else
110+ echo "No crash logs for 'sample' found."
111+ fi
112+ else
113+ echo "Crash log directory not found."
114+ fi
100115 test-android :
101116 needs : test-rn
102117 runs-on : macOS-13
Original file line number Diff line number Diff line change 33 archiveVersion = 1;
44 classes = {
55 };
6- objectVersion = 77;
6+ objectVersion= 77;
77 objects = {
88
99/* Begin PBXBuildFile section */
You can’t perform that action at this time.
0 commit comments