@@ -176,8 +176,16 @@ jobs:
176176 CHATWOOT_API : ${{ secrets.CHATWOOT_API }}
177177 E2E : true
178178 run : |
179- # Build with additional flags to handle asset catalog issues
180- echo "=== Attempting first build ==="
179+ # Try building without asset catalogs first
180+ echo "=== Attempting build without asset catalogs ==="
181+
182+ # Remove CodeScanner asset catalog to bypass the issue
183+ CODESCANNER_ASSETS_PATH="DerivedData/SourcePackages/checkouts/CodeScanner/Sources/CodeScanner/Resources/Assets.xcassets"
184+ if [ -d "$CODESCANNER_ASSETS_PATH" ]; then
185+ echo "Temporarily removing CodeScanner Assets.xcassets to bypass compilation issue..."
186+ mv "$CODESCANNER_ASSETS_PATH" "$CODESCANNER_ASSETS_PATH.backup" || true
187+ fi
188+
181189 if xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
182190 -scheme Bitkit \
183191 -configuration Debug \
@@ -187,11 +195,16 @@ jobs:
187195 -skipPackagePluginValidation \
188196 -disableAutomaticPackageResolution \
189197 build; then
190- echo "✅ First build succeeded!"
198+ echo "✅ Build succeeded without asset catalogs !"
191199 else
192- echo "❌ First build failed, trying fallback approach..."
200+ echo "❌ Build failed, trying with asset catalogs restored..."
201+
202+ # Restore asset catalog and try again
203+ if [ -d "$CODESCANNER_ASSETS_PATH.backup" ]; then
204+ mv "$CODESCANNER_ASSETS_PATH.backup" "$CODESCANNER_ASSETS_PATH" || true
205+ fi
193206
194- # Fallback: Clean everything and try a simpler build
207+ # Clean everything and try a simpler build
195208 echo "=== Cleaning for fallback build ==="
196209 rm -rf DerivedData
197210 rm -rf ~/Library/Developer/Xcode/DerivedData
0 commit comments