Repository navigation
Closed
Description
Symptom
xcodebuild -workspace Sudoku.xcworkspace -scheme Sudoku -destination 'generic/platform=iOS' build fails:
Packages/AppMonetizationKit/Sources/AdsAdMob/LiveAdMobBridge.swift:37:13: error: cannot find 'MobileAds' in scope
Packages/AppMonetizationKit/Sources/AdsAdMob/UMPConsentPresenter.swift:88:56: error: generic parameter 'Component' could not be inferred
Packages/AppMonetizationKit/Sources/AdsAdMob/UMPConsentPresenter.swift:97:13: error: cannot find 'ConsentForm' in scope
Reproduces on main (verified by stashing #101 changes — same failure).
Pre-existing scope
Bug existed before #101 (macOS conditional fix). v2.0/v2.1/v2.2 PRs all verified via mise exec -- swift build — host = macOS = canImport(GoogleMobileAds) returns false → bridge body skipped → "passes". No one tested iOS xcodebuild compile before now.
Xcode Cloud builds couldn't catch this either because earlier CI fixes (#76/#87/#89/#93/#95/#98/#100) were sequentially unblocking pre-compile steps. The compile step never ran successfully on iOS.
Symbols in question
MobileAds.shared— v11+ AdMob entry point. In v11 the type was renamed fromGADMobileAdstoMobileAds. The SDK pin says11.13.0perPackages/SudokuKit/Package.resolved.ConsentForm— UMP SDK type, recent rename fromUMPConsentForm.
Likely causes (to investigate)
- Module name mismatch:
internal import GoogleMobileAdsmay need to beimport GoogleMobileAds(dropinternal) for Tuist+xcodebuild to pick up symbols - Tuist's InternalImportsByDefault interaction:
SWIFT_UPCOMING_FEATURE_INTERNAL_IMPORTS_BY_DEFAULTmay make Tuist generated project hide AdMob symbols differently than SwiftPM - Module re-export: GoogleMobileAds 11.x may require explicit
import GoogleMobileAds.MobileAdsor similar - SDK version drift: maybe 11.13.0's symbol layout differs from what the code expects
Acceptance
- iOS xcodebuild build succeeds (along with macOS, regression covered by feat(v2): conditional AdMob/UMP deps + NoopAdProvider for macOS build #101)
- AppMonetizationKit/Tests still 87/87
- Isolation audit still 1
import GoogleMobileAds(LiveAdMobBridge.swift)
Investigation steps
grep -A 5 "import.*GoogleMobileAds\|import.*UserMessagingPlatform" Packages/AppMonetizationKit/Sources/AdsAdMob/*.swift- Check if SwiftPM-direct iOS compile (with proper -target/-sdk) works
- Try removing
internalfromimport GoogleMobileAdsto test InternalImportsByDefault interaction - Check GoogleMobileAds 11.13.0 actual module layout (downloaded SPM artifacts at
~/.cache/DerivedData/...)
Blocks
- v2.5 TestFlight (Xcode Cloud build will hit this once it reaches compile step)
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs(v2): rewrite plan.md to reflect shipped reality (v2.0–v2.4 done,…
docs(v2): rewrite plan.md to reflect shipped reality (v2.0–v2.4 done,…