-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Capacitor Version
npx cap doctor
Other API Details
**npm --version output:**
<version here>
**node --version output:**
<version here>
**pod --version output (iOS CocoaPods issues only):**
<version here>Platforms Affected
- iOS
- Android
- Web
Current Behavior
Running the following commands:
npx cap add ios
npx cap update ios
npx cap doctor ios
causes inconsistent behavior on iOS.
The CLI sometimes skips prerequisite checks and proceeds before Cordova package files are fully generated.
This leads to intermittent build failures, missing Swift files, and incomplete iOS setup.
Expected Behavior
Both Bundler and CocoaPods checks should always run during:
cap add ios
cap update ios
cap doctor ios
The CLI should wait for all Cordova Package .swift files to finish generating before continuing the update flow.
Project Reproduction
A minimal reproduction repository: https://github.com/MOHITKOURAV01/capacitor.git Steps: 1. Clone the repo 2. Run npm install 3. Run npx cap add ios 4. Run npx cap update ios 5. Observe missing checks / race condition
Additional Information
The issue appears more frequently on slow machines or when multiple plugins trigger Cordova Swift generation.
Let me know if logs or screen recordings are required—happy to provide more details!