@@ -2,39 +2,66 @@ name: Compile Check
22
33on :
44 push :
5- branches : [ "dev" ]
5+ branches : ["dev"]
66
77jobs :
88 compile :
99 runs-on : macos-latest
10-
1110 steps :
1211 - uses : actions/checkout@v4
1312
14- # 1. Install XcodeGen
15- - name : Install XcodeGen
16- run : brew install xcodegen
13+ - name : Install Homebrew (if missing) & deps
14+ run : |
15+ # ensure brew exists (CI image usually has it) and install xcodegen
16+ which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
17+ brew update || true
18+ brew install xcodegen || true
1719
18- # 2. Generate the Xcode project
1920 - name : Generate Xcode Project
2021 run : xcodegen generate
2122
22- # 3. Cache SwiftPM package builds (SUPER IMPORTANT)
23+ - name : Resolve Swift Package dependencies (for Xcode/SPM)
24+ run : |
25+ # Resolve / download SPM packages so resources are available for the project
26+ if [ -f "./prostore.xcodeproj/project.pbxproj" ]; then
27+ xcodebuild -resolvePackageDependencies -project ./prostore.xcodeproj
28+ else
29+ echo "No prostore.xcodeproj found — check xcodegen output"
30+ ls -la
31+ fi
32+
2333 - uses : actions/cache@v4
2434 with :
2535 path : |
2636 ~/Library/Developer/Xcode/DerivedData
2737 .build
28- key : swiftpm-${{ hashFiles('project.yml') }}
38+ .swiftpm
39+ key : swiftpm-${{ runner.os }}-${{ hashFiles('project.yml') }}
2940 restore-keys : |
30- swiftpm-
41+ swiftpm-${{ runner.os }}-
42+
43+ - name : Diagnostic: look for ZIPFoundation resources
44+ run : |
45+ echo "---- Searching repo for ZIPFoundation_ZIPFoundation.bundle references ----"
46+ git grep -n "ZIPFoundation_ZIPFoundation.bundle" || true
47+ echo "---- Searching filesystem for ZIPFoundation* ----"
48+ find . -iname "ZIPFoundation*" -maxdepth 6 -print || true
49+ echo "---- List project resources for quick debug ----"
50+ if [ -f "./prostore.xcodeproj/project.pbxproj" ]; then
51+ grep -n "ZIPFoundation" ./prostore.xcodeproj/project.pbxproj || true
52+ fi
3153
32- # 4. Compile check ONLY (real build, no archive, fast)
33- - name : Compile Check (Cached)
54+ - name : Compile Check (cached, fast)
3455 run : |
56+ # Fast build to validate compile & package resolution — code signing disabled for CI
3557 xcodebuild \
58+ -project prostore.xcodeproj \
3659 -scheme prostore \
37- -destination " platform=iOS Simulator,name=iPad (10th generation),OS=18.6" \
60+ -destination ' platform=iOS Simulator,name=iPad (10th generation),OS=18.6' \
3861 -configuration Debug \
39- BUILD_DIR=$(pwd)/build \
40- ONLY_ACTIVE_ARCH=YES
62+ -derivedDataPath $(pwd)/build \
63+ ONLY_ACTIVE_ARCH=YES \
64+ COMPILER_INDEX_STORE_ENABLE=NO \
65+ ENABLE_PREVIEWS=NO \
66+ CODE_SIGNING_ALLOWED=NO \
67+ build | xcpretty || true
0 commit comments