UNPKG

@capgo/cli

Version:
56 lines (55 loc) 2.85 kB
import type { PrescanCheck } from '../types'; /** * Podfile present but `Pods/` or `App.xcworkspace` missing. The cloud builder * runs `pod install` (regenerating both), so this is a WARNING, not an error - * it slows the first build and breaks local Xcode opens, but the server recovers. */ export declare const podsNotInstalled: PrescanCheck; /** Podfile present but Podfile.lock absent - non-reproducible pod resolution. */ export declare const podsLockMissing: PrescanCheck; /** * Podfile does not wire the Capacitor pod. `pod install` cannot inject a missing * declaration, but the standard Capacitor Podfile uses the `capacitor_pods` * helper / `require_relative` rather than a literal `pod 'Capacitor'`, so the * literal-match heuristic is high false-positive. WARNING, not error. */ export declare const podsCapacitorMissing: PrescanCheck; /** * SPM project with no Package.resolved in either known location. `build_app` * (xcodebuild) resolves packages during the build, so this is a WARNING - a * committed Package.resolved just makes resolution reproducible and faster. */ export declare const spmPackageResolvedMissing: PrescanCheck; /** * Package.swift does not declare the capacitor-swift-pm dependency / the * Capacitor product. The builder never runs `cap sync`, but Package.swift is * CLI-managed ("DO NOT MODIFY") and the regex is high false-positive on valid * variants, so this is a WARNING, not an error. */ export declare const spmCapacitorDependencyMissing: PrescanCheck; /** * AppIcon.appiconset directory missing, Contents.json missing/malformed, or no * icon images declared. The directory-missing and malformed-Contents cases are * always errors (the asset catalog is structurally broken). The "no images" * case is a WARNING by default (actool tolerates it for ad_hoc/dev) and * ESCALATES to error when uploading to the App Store (ITMS-90704 blocks upload). */ export declare const appiconEmptyOrPlaceholder: PrescanCheck; /** * A Contents.json image entry references a filename that is missing from disk. * `actool` FAILS server-side in this case, so this KEEPS error severity. */ export declare const appiconReferencedFileMissing: PrescanCheck; /** * App Store marketing icon (1024x1024 / role=marketing) missing. Upload-gated: * ad_hoc/dev builds do not need it, but App Store upload requires it * (ITMS-90704). KEEPS error severity. */ export declare const appiconMarketingMissing: PrescanCheck; /** * SPM project where the pbxproj IPHONEOS_DEPLOYMENT_TARGET is LOWER than the * Package.swift platform minimum (`.iOS(.vN)`) - the dangerous direction: the * package requires a newer floor than the app builds against. Warning only; * skipped entirely when IPHONEOS_DEPLOYMENT_TARGET is absent (inherited/unknown). */ export declare const spmDeploymentTargetConsistency: PrescanCheck;