Executing cap sync before updating skipped bundle exec pod install:
[capacitor] [warn] Skipping pod install because CocoaPods is not installed
[capacitor] [warn] Unable to find “xcodebuild”. Skipping xcodebuild clean step…
After the upgrade, it tries to execute it:
[capacitor] Updating iOS native dependencies with bundle exec pod install - failed!
[capacitor] update ios - failed!
[capacitor] [error] ERR_SUBPROCESS_COMMAND_NOT_FOUND
[ERROR] An error occurred while running subprocess capacitor.
I checked the update.js file from capacitor/cli and somehow podPath changed from “pod” to “bundle exec pod” after the upgrade and if it starts with bundle, it tries to be executed. I don’t know where this comes from. Any advice is appreciated.
From the update.js
const podPath = await config.ios.podPath;
const useBundler = podPath.startsWith(‘bundle’);
const podCommandExists = await (0, subprocess_1.isInstalled)(‘pod’);
if (useBundler || podCommandExists) {
So, it appears to be a configuration issue on my end then… In your case, config.ios.podPath is “pod install” and not “bundle exec pod install”. I wonder where this comes from? When I set up a new capacitor project, I get the same result as you.
I am using the latest client version as of today:
“@capacitor/cli”: “6.1.2”,