9191 sed -n '1,200p' project.yml || true
9292
9393 - name : Generate Xcode Project
94+ shell : /bin/bash {0}
9495 run : |
9596 set -euo pipefail
9697
@@ -113,7 +114,6 @@ jobs:
113114 fi
114115
115116 echo "=== running xcodegen generate --spec project.yml --verbose ==="
116- # run xcodegen but capture non-zero rather than letting set -e kill the job immediately
117117 set +e
118118 xcodegen generate --spec project.yml --verbose
119119 rc=$?
@@ -123,10 +123,9 @@ jobs:
123123 echo "❌ xcodegen exited with code $rc — collecting diagnostics..."
124124
125125 echo "---- macOS unified log for xcodegen (last 5m) ----"
126- # unified logging (may require permission on some runners) - best-effort
127- log show --style syslog --predicate 'process == "xcodegen"' --last 5m || true
126+ log show --style syslog --predicate 'process == \"xcodegen\"' --last 5m || true
128127
129- echo "---- Recent DiagnosticReports (may contain a crash log) ----"
128+ echo "---- Recent DiagnosticReports ----"
130129 ls -la ~/Library/Logs/DiagnosticReports | tail -n 20 || true
131130
132131 echo "---- /var/log/system.log (tail) ----"
@@ -157,24 +156,17 @@ jobs:
157156 echo "- xcodegen binary is crashing due to incompatible architecture (ARM vs x86_64)."
158157 echo "- Corrupt xcodegen install or an OS-level incompatibility."
159158 echo ""
160- echo "Quick diagnostics you can run locally :"
159+ echo "Quick diagnostics to check in the logs above :"
161160 echo " file $(which xcodegen) # check binary arch"
162161 echo " xcodegen --version"
163- echo " arch -x86_64 xcodegen generate --spec project.yml # try forcing x86_64 (only if Rosetta is available)"
162+ echo " arch -x86_64 xcodegen generate --spec project.yml # try forcing x86_64 (if Rosetta available)"
164163 echo ""
165- echo "If this persists on the GitHub-hosted runner, try one of:"
166- echo "- Force running xcodegen under Rosetta (arch -x86_64) if the binary is x86_64 and Rosetta is installed."
167- echo "- Use a different runner image (e.g. macos-latest / macos-12) that better matches the xcodegen build."
168- echo "- Rebuild xcodegen locally from source or use a known-good prebuilt binary."
169- echo ""
170- # fail the step with the original rc (keeps behaviour obvious)
171164 exit $rc
172165 fi
173166
174167 echo "✅ Generated project at: $(pwd)/prostore.xcodeproj"
175168 echo "project.pbxproj header (first 60 lines):"
176169 sed -n '1,60p' prostore.xcodeproj/project.pbxproj || true
177- shell : /bin/bash
178170
179171 - name : Resolve Swift Packages
180172 run : |
0 commit comments