Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Sync fails when Info.plist has been localised and cordova plugin.xml has config-file target="*-Info.plist" #5331

Closed
sjregan opened this issue Dec 21, 2021 · 1 comment · Fixed by #5333

Comments

@sjregan
Copy link

sjregan commented Dec 21, 2021

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 3.3.3
  @capacitor/core: 3.3.3
  @capacitor/android: 3.3.3
  @capacitor/ios: 3.3.3

Installed Dependencies:

  @capacitor/cli: 3.3.3
  @capacitor/android: 3.3.3
  @capacitor/ios: 3.3.3
  @capacitor/core: 3.3.3

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

iOS

Current Behavior

When running npx cap sync the following errors are output:

[fatal] Unable to read: /Users/example/capacitor-app/ios/App/App/Info.plist

Expected Behavior

The sync tool should detect that the Info.plist files have been localised and work as it does when they have not been localised.

Code Reproduction

https://github.com/sjregan/capacitor-sync-localisation-issue

Other Technical Details

npm --version output: 8.1.2

node --version output: v16.13.1

pod --version output (iOS issues only): 1.11.2

Additional Context

This issue arises when you use the 'Localization' feature within xcode on the Info.plist file.

When this feature is used the Info.plist file is duplicated and moved from App/Info.plist to App/en.lrpoj/Info.plist and App/Base.lproj and any other number of subdirectories depending on how many localised versions are being used.

For the issue to appear, a cordova plugin that has something like the following in it's plugin.xml:

<config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
  <string>$FACEID_USAGE_DESCRIPTION</string>
</config-file>
@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants