Skip to content

fix(cli): guard non-array requiredElementsArray in iOS plist merge - #8703

Open
imuhammadnadeem wants to merge 1 commit into
ionic-team:mainfrom
imuhammadnadeem:fix/cli-guard-malformed-required-elements
Open

imuhammadnadeem wants to merge 1 commit into
ionic-team:mainfrom
imuhammadnadeem:fix/cli-guard-malformed-required-elements

Conversation

@imuhammadnadeem

Copy link
Copy Markdown

Summary

  • Guard doesContainElements in cli/src/cordova.ts when requiredElementsArray is not an array.
  • Some Cordova plugin config.xml shapes parse to a non-array for required Info.plist elements; iterating them currently throws during cap sync / iOS plist merge.
  • Skip those entries with a warning instead of aborting the merge.

Context

Shipped via patch-package on @capacitor/cli@6.2.1 in a Capacitor + Cordova hybrid app. Re-applied against current tip source (cli/src/cordova.ts).

Test plan

  • npx cap sync ios with normal Cordova plugins still merges Info.plist entries
  • A plugin whose edit-config / required elements parse oddly logs the warning and continues instead of throwing

Made with Cursor

Some Cordova plugin config.xml shapes parse to a non-array for required
Info.plist elements. Skip those entries with a warning instead of throwing
while iterating.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant