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

Terminal hangs if tns device is run and there is an untrusted iPhone connected #1328

Closed
nikolay-diyanov opened this issue Dec 9, 2015 · 6 comments
Labels

Comments

@nikolay-diyanov
Copy link

So, if you have an iPhone connected to your Mac, but the Trust button is still not tapped and you run tns device command, the Terminal hangs completely, and you should close it kind of forcefully.

Instead, it will be great if the Terminal can say that there is untrusted iPhone, or at least say that there is no iPhone, but allow you to continue your work in the Terminal window.

Here is the log of that scenario:

execFile: /usr/local/Cellar/android-sdk/24.3.2/platform-tools/adb "help"
spawn: /usr/local/Cellar/android-sdk/24.3.2/tools/android "--help"

   Usage:
   android [global options] action [action options]
   Global options:

-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-s --silent : Silent mode, shows errors only.

                                                                Valid
                                                                actions
                                                                are
                                                                composed
                                                                of a verb
                                                                and an
                                                                optional
                                                                direct
                                                                object:
  • sdk : Displays the SDK Manager window.
  • avd : Displays the AVD Manager window.
  • list : Lists existing targets or virtual devices.
  • list avd : Lists existing Android Virtual Devices.
  • list target : Lists existing targets.
  • list device : Lists existing devices.
  • list sdk : Lists remote SDK repository.
  • create avd : Creates a new Android Virtual Device.
  • move avd : Moves or renames an Android Virtual Device.
  • delete avd : Deletes an Android Virtual Device.
  • update avd : Updates an Android Virtual Device to match the folders
    of a new SDK.
  • create project : Creates a new Android project.
  • update project : Updates an Android project (must already have an
    AndroidManifest.xml).
  • create test-project : Creates a new Android project for a test package.
  • update test-project : Updates the Android project for a test package (must
    already have an AndroidManifest.xml).
  • create lib-project : Creates a new Android library project.
  • update lib-project : Updates an Android library project (must already have
    an AndroidManifest.xml).
  • create uitest-project: Creates a new UI test project.
  • update adb : Updates adb to support the USB devices declared in the
    SDK add-ons.
  • update sdk : Updates the SDK by suggesting new platforms to install
    if available.

Exec uname -a
stdout: Darwin diyanovmac.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64

stderr:
Exec npm -v
stdout: 2.11.3

stderr:
spawn: java "-version"
Exec node-gyp -v
stdout:
stderr: /bin/sh: node-gyp: command not found

Exec xcodebuild -version
stdout: Xcode 7.1
Build version 7B91b

stderr:
Exec pod --version
stdout: 0.39.0

stderr:
Exec '/usr/local/Cellar/android-sdk/24.3.2/platform-tools/adb' version
stdout: Android Debug Bridge version 1.0.32
Revision eac51f2bb6a8-android

stderr:
spawn: /usr/local/Cellar/android-sdk/24.3.2/tools/android "-h"
Exec mono --version
stdout: Mono JIT compiler version 4.0.4 ((detached/d481017 Mon Sep 28 17:32:19 EDT 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: yes(3.6.0svn-mono-(detached/a173357)
GC: sgen

stderr:
Exec git --version
stdout: git version 1.8.4

stderr:
Exec gradle -v

stdout:

Gradle 2.7

Build time: 2015-09-14 07:26:16 UTC
Build number: none
Revision: c41505168da69fb0650f4e31c9e01b50ffc97893

Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.7.0_71 (Oracle Corporation 24.71-b01)
OS: Mac OS X 10.10.5 x86_64

stderr:
Exec "javac" -version
stdout:
stderr: javac 1.7.0_71

System information:
{ procInfo: 'nativescript/1.5.1',
platform: 'darwin',
os: 'Darwin diyanovmac.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64\n',
shell: '/bin/bash',
dotNetVer: null,
procArch: 'x64',
nodeVer: 'v0.12.7',
npmVer: '2.11.3',
javaVer: '1.7.0',
nodeGypVer: null,
xcodeVer: 'Xcode 7.1\nBuild version 7B91b\n',
itunesInstalled: true,
cocoapodVer: '0.39.0',
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: '4.0.4',
gitVer: '1.8.4',
gradleVer: '2.7',
javacVersion: '1.7.0_71' }
Initializing analytics statuses.
Analytics statuses:
{ TrackFeatureUsage: 0, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'device'.
AnalyticsInstallationID: dec7f90a-1750-4b18-a220-28f0bfb9a318
monitor not started
monitor not started
monitor has started, connecting to http://5752dabccfc54c4ab82aea9626b7338e.monitor-eqatec.com/json.ashx
execFile: /usr/local/Cellar/android-sdk/24.3.2/platform-tools/adb "help"
spawn: /usr/local/Cellar/android-sdk/24.3.2/platform-tools/adb "start-server"
Analytics statuses:
{ TrackFeatureUsage: 0, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'device|*list'.
startLookingForDevices; platform is undefined

@rosen-vladimirov
Copy link
Contributor

This should be fixed in latest master branch. I'm setting it to ready for test.

@dtopuzov
Copy link
Contributor

Still not fixed in 1.6.0.
tns run ios --path iOSApp
Unable to stop session. Result is: 3892314142
Unable to stop session. Result is: 3892314142
Unable to stop session. Result is: 3892314142
Unable to stop session. Result is: 3892314142
...and console hangs.

@dtopuzov dtopuzov modified the milestones: 1.6.1, 1.6.0 Feb 18, 2016
@teobugslayer teobugslayer modified the milestones: 1.6.2, 1.6.1 Feb 18, 2016
@dtopuzov dtopuzov removed this from the 1.6.2 milestone Mar 2, 2016
@Daxito
Copy link

Daxito commented Mar 14, 2016

I got the same message (Unable to stop session. Result is: 3892314142), I even had to reboot my computer before it was ok, {N} 1.6.2, tns-ios 1.6.0.

@pkoleva
Copy link
Contributor

pkoleva commented Jun 3, 2016

Still reproduced in version 2.0.1

@enchev
Copy link
Contributor

enchev commented Jul 25, 2016

Cannot reproduce with latest code from master. Console will not hang and XCode will just report that cannot find any architecture.

@enchev
Copy link
Contributor

enchev commented Jul 25, 2016

screen shot 2016-07-25 at 2 06 38 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants