Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Fix (publish): Remove binary-plist and use simple-plist instead #1076

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Mar 23, 2018

In case when produced Info.plist is not a binary file, tns publish ios command fails because bplist-parser is not able to parse non-binary plist files. This PR replaces bplist-parser module with sample-plist that is able to parse binary and xml files.

Fixes NativeScript/nativescript-cli#3470

plist-parser.ts Outdated
import * as simplePlist from "simple-plist";

export class PlistParser implements IPlistParser {
public async parseFile(plistFilePath: string): Promise<any> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no need to make this async

In case when produced Info.plist is not a binary file, `tns publish ios` command fails because `bplist-parser` is not able to parse non-binary plist files. This PR replaces `bplist-parser` module with `sample-plist` that is able to parse binary and non-binary files.

Fixes NativeScript/nativescript-cli#3470
@Fatme Fatme merged commit 2b4ee45 into release Mar 27, 2018
@Fatme Fatme deleted the fatme/plist branch March 27, 2018 06:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants