Skip to content

"Expected "\"", "\\\"", "\\n", or [^\\"] but "\\" found." error on tns run #2424

@vchimev

Description

@vchimev

An error on tns run ios: Expected """, "\"", "\n", or [^\\"] but "\" found.

Prerequisite:
{N} CLI 2.5.0 release candidate.

Note:
I have an iOS device connected and iOS Simulator booted.

Steps:

git clone https://github.com/NativeScript/sample-Groceries
cd sample-Groceries
tns update
tns run ios

Output:

mcsofvchimev:sample-Groceries vchimev$ tns run ios
Executing before-prepare hook from /Users/vchimev/Work/git/sample-Groceries/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.0.10
Preparing project...
Project successfully prepared (ios)
Executing after-prepare hook from /Users/vchimev/Work/git/sample-Groceries/hooks/after-prepare/nativescript-unit-test-runner.js
Searching for devices...
Building project...
Skipping package build. No changes detected on the native side. This will be fast!
Installing...
Successfully installed on device with identifier '6CBB0388-1AD2-42F8-9992-8D8E7F55F04A'.
Expected "\"", "\\\"", "\\n", or [^\\"] but "\\" found.

Log Trace:

stderr: 
Skipping package build. No changes detected on the native side. This will be fast!
Skipping install.
SyntaxError: Expected "\"", "\\\"", "\\n", or [^\\"] but "\\" found.
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:566:15)
    at ex (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:120:33)
    at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
    at /usr/local/lib/node_modules/nativescript/lib/common/services/commands-service.js:80:104
    at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
    at /usr/local/lib/node_modules/nativescript/lib/common/yok.js:191:124
    at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
    - - - - -
    at peg$buildStructuredError (/usr/local/lib/node_modules/nativescript/node_modules/pbxproj-dom/parser.js:316:12)
    at Object.peg$parse [as parse] (/usr/local/lib/node_modules/nativescript/node_modules/pbxproj-dom/parser.js:901:11)
    at Function.Xcode.open (/usr/local/lib/node_modules/nativescript/node_modules/pbxproj-dom/xcode.js:15:43)
    at /usr/local/lib/node_modules/nativescript/lib/services/ios-project-service.js:316:41
    at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
    at /usr/local/lib/node_modules/nativescript/lib/services/ios-project-service.js:254:70
    at Function.settle (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
    at FiberFuture.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)
    at /usr/local/lib/node_modules/nativescript/lib/services/ios-project-service.js:212:74
Analytics statuses: 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions