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

[Workaround] couldn't parse contents of my-app-Info.plist #2

Closed
biesbjerg opened this issue May 4, 2017 · 1 comment
Closed

[Workaround] couldn't parse contents of my-app-Info.plist #2

biesbjerg opened this issue May 4, 2017 · 1 comment

Comments

@biesbjerg
Copy link

Just spent a couple of hours figuring out why this plugin was corrupting my plist file and wanted to share my findings.

error: couldn't parse contents of '/my-app/platforms/ios/my-app/my-app-Info.plist': The data couldn’t be read because it isn’t in the correct format.

Turns out plist.js v2.0.1 has a bug (it is fixed, but not yet released to NPM) where empty strings are parsed to null.
Repo issue can be found here : TooTallNate/plist.js#79

As a temporary workaround, you can add the specific commit, containing the fix, as a dependecy to your own package.json:

...
  "devDependencies": {
    "cordova-plugin-ios-localized-strings": "1.0.5",
    "plist": "git://github.com/TooTallNate/plist.js.git#4853b741cefcc53697ba333c964fe3504bd09585",
  }
@biesbjerg
Copy link
Author

Plist 2.1.0 is published, which fixes the error :-)

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

1 participant