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: Xcode 10 can not use InfoPlist.strings due to wrong encoding #34

Closed
iwan-uschka opened this issue Sep 29, 2018 · 4 comments
Closed

Comments

@iwan-uschka
Copy link

Xcode seems to need UTF-8 but recognizes UTF-16. Since Xcode 10 it breaks the building process. Opening the InfoPlist.strings files within an editor to save it encoded in UTF-8 solves the issue.

@patricksebastien
Copy link

The exact error on my side:
/.../InfoPlist.strings:-1: could not decode input file using specified encoding: Unicode (UTF-8), and the file contents appear to be encoded in Unicode (UTF-16)

Changing the Text Encoding inside xCode to Unicode (UTF-16) fix the issue, but doesn't fix it when recreating the project (rm platform).

@patricksebastien
Copy link

Another solution:
Currently the best workaround is to opt-out of the new build system:
apache/cordova-ios#407

@iwan-uschka
Copy link
Author

Thx. for your last response. I am still getting the same error, using --buildFlag="-UseModernBuildSystem=0" didn't help. The command i am running looks like this:

ionic build ios --developmentTeam="XYZ" --codeSignIdentity="XYZ" --provisioningProfile="XYZ" --buildFlag="-UseModernBuildSystem=0"

JamesPrestonTF pushed a commit to JamesPrestonTF/cordova-plugin-localization-strings that referenced this issue Oct 16, 2018
XCode 10 cannot read .strings files in UTF-16, so the encoding was
changed to UTF-8.

Fixes kelvinhokk#34.
@tlacroix
Copy link

Any idea when the new build is going to be available thru npm/cordova? I've been patching manually and advised my team so they do the same in the meantime.

Love your plugin btw, it solved so many headaches for us being in Quebec and needing to release apps in French and English. Cheers :-)

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

No branches or pull requests

3 participants