Skip to content

Commit 622d2d9

Browse files
fix: include remaining files
1 parent 35deba3 commit 622d2d9

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff 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

sample/ios/sample.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 77;
6+
objectVersion= 77;
77
objects = {
88

99
/* Begin PBXBuildFile section */

0 commit comments

Comments
 (0)