Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19672] Failed to connect to device (0xe8000065)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-10-08T01:14:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.1.0
ComponentsiOS, Tooling
Labels5.0.0.GA, 5.0.1, error_handling, liveview, studio, user_experience
ReporterJeff Messick
AssigneeChris Barber
Created2015-09-25T17:56:39.000+0000
Updated2015-11-19T23:35:32.000+0000

Description

Create default classic project. Install on device with LiveView Enabled via Studio. Receive follow error:
[ERROR] :  An error occurred during build after 1m 26s 966ms
[ERROR] :  Failed to copy app to device (0xe8000005)
[ERROR] :  For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/joe/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
    at ChildProcess.emit (events.js:117:20)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
Installing on device without LiveView installs with no errors. Installing via CLI appc ti build -p ios -I 9.0 -T device -l trace installs with no errors.

Comments

  1. Paul Hollyer 2015-09-26

    Hi, I started getting this error on all my apps this morning after installing the latest Studio updates. My problem was solved by fixing the run configurations. I had to select the correct provisioning profile, because the run configurations all seem to be referencing the wrong profile. Hope this helps.
  2. Jeff Messick 2015-09-26

    Thanks for the advice. I only have 2 provisioning profiles in the run config. I have referenced the correct one. Doesn't matter what I do in the run config, I get the same error. ON a side note I got the app to install 1 time out of about 25 tries.
  3. Jeff Messick 2015-09-28

    Here is the console log output. https://gist.github.com/jmessick9/f5a38b8a359cc75d9010#file-console-log
  4. Rodolfo Perottoni 2015-09-29

    I'm facing the same issue. Only way i've found to solve it was to restart my computer + clean the project and build it again. Appcelerator Studio 4.3.0.201509151348, Titanium SDK 5.0.1.GA. I am building for iOS 9.0.1. When building with CLI with the following command: appc ti build -p ios -I 9.0 -T device —liveview The application is successfully installed but when opening it is not being able to find the Live View Server.
  5. levani 2015-09-29

    Same problem here... I use the following command to install my app on device: titanium build --platform ios --target device --log-level debug --deploy-type development --sdk 5.0.0.GA --pp-uuid 323ad4fe-92a2-4e8e-6535-6d5e75464253 --developer-name 'LM (NBHX4UGABM)' and getting the following error: [INFO] Finished building the application in 38s 290ms [INFO] Installing app on device: LM’s iPhone [ERROR] An error occurred during build after 49s 645ms [ERROR] Failed to copy app to device (0xe8000005) [ERROR] For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
  6. Fokke Zandbergen 2015-10-01

    [~pinnamuri] On the Q&A, [~jmessick] has provided valuable information from the device logs:
       <Warning>: -[StreamingUnzipper _supplyBytes:length:withReply:]:1343: Invalid symlink: /private/var/mobile/Media/PublicStaging/APPNAME.app/app.js -> /var/folders/l3/qfmj63l11n33fjr5m4nyxvj80000gn/T/liveview.js (absolute symlinks are forbidden)
       
    So it looks like we need to make sure that when we build the liveview.js is copied, not symlinked. [~cbarber] this is probably related to the revamped iOS build process right?
  7. Chris Barber 2015-10-01

    [~fokkezb] Depends on where that error originated. I'm telling you now, it did not happen when running on an iOS 9 simulator.
  8. Jeff Messick 2015-10-01

    Fokke - I was building to the device, iPhone 6 - 9.0.2
  9. Fokke Zandbergen 2015-10-02

    [~cbarber] is seems like this is not LiveView only but a problem with symlinks we create that make the deploy to device break:
       Oct  1 23:49:48 LM-iPhone com.apple.StreamingUnzipService[585] <Warning>: -[StreamingUnzipper _supplyBytes:length:withReply:]:1343: Invalid symlink: /private/var/mobile/Media/PublicStaging/radarapp.app/alloy/backbone.js -> /Users/LM/Documents/radarapp/Resources/iphone/alloy/backbone.js (absolute symlinks are forbidden)
       Oct  1 23:49:48 LM-iPhone streaming_zip_conduit[584] <Warning>: __dispatch_source_read_socket_block_invoke_2166:297: Stream extractor got error: Error Domain=SZExtractorErrorDomain Code=2 "Invalid symlink: /private/var/mobile/Media/PublicStaging/radarapp.app/alloy/backbone.js -> /Users/LM/Documents/radarapp/Resources/iphone/alloy/backbone.js (absolute symlinks are forbidden)" UserInfo={NSFilePath=/private/var/mobile/Media/PublicStaging/radarapp.app/alloy/backbone.js, SZExtractorSourceFileLineErrorKey=1343, SZExtractorFunctionNameErrorKey=-[StreamingUnzipper _supplyBytes:length:withReply:], NSLocalizedDescription=Invalid symlink: /private/var/mobile/Media/PublicStaging/radarapp.app/alloy/backbone.js -> /Users/LM/Documents/radarapp/Resources/iphone/alloy/backbone.js (absolute symlinks are forbidden)}
       Oct  1 23:49:48 LM-iPhone streaming_zip_conduit[584] <Warning>: __dispatch_source_read_socket_block_invoke_2:188: Failed to finish extraction: Error Domain=SZExtractorErrorDomain Code=3 "This extractor previously encountered an error and can no longer be used." UserInfo={NSLocalizedDescription=This extractor previously encountered an error and can no longer be used.}
       
    Source: https://community.appcelerator.com/topic/3449/failed-to-install-on-the-device/21
  10. Chris Barber 2015-10-02

    [~fokkezb] You're getting these log messages directly from the device console logs? How can I reproduce this?
  11. Fokke Zandbergen 2015-10-03

    [~cbarber] I personally can't. [~jmessick] [~levani] [~rdperottoni] please add your exact environment info (os, SDK, node etc) plus steps to reproduce so we can track and fix.
  12. levani 2015-10-03

    OSX 10.11 (Same happened on 10.10) Node.js 0.10.35 Titanium CLI version 5.0.4 Titanium SDK version 5.0.0.GA Alloy 1.7.11 (Same happend on 1.7.8) iOS 9.0.2, iPhone 6 I have Alloy app and trying to install it on my device using titanium CLI (I'm not using appcelerator studio): {quote}titanium build --platform ios --target device --log-level debug --deploy-type development --sdk 5.0.0.GA --pp-uuid 427ad4fe-82a2-4e8e-8942-6d5e75464253 --developer-name 'LM (NBHX3UGABM)'{quote} This is a full output from that command https://www.dropbox.com/s/7cez55w3b7tezbi/output.txt?dl=0
  13. Jeff Messick 2015-10-03

    Operating System Name = Mac OS X Version = 10.11 Architecture = 64bit # CPUs = 4 Memory = 8.0GB Node.js Node.js Version = 0.10.37 npm Version = 1.4.28 Appcelerator CLI Installer = 4.2.0 Core Package = 5.0.2 Titanium CLI CLI Version = 5.0.4 node-appc Version = 0.2.31 Titanium SDKs 5.0.2.GA Version = 5.0.2 Install Location = /Users/jeffreymessick/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA Platforms = android, mobileweb, iphone git Hash = 92c2265 git Timestamp = 09/30/15 12:07 node-appc Version = 0.2.31 5.0.1.GA Version = 5.0.1 Install Location = /Users/jeffreymessick/Library/Application Support/Titanium/mobilesdk/osx/5.0.1.GA Platforms = android, mobileweb, iphone git Hash = 9640236 git Timestamp = 09/24/15 10:39 node-appc Version = 0.2.31 Mac OS X Command Line Tools = installed Intel® Hardware Accelerated Execution Manager (HAXM) Not installed Java Development Kit Version = 1.7.0_80 Java Home = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home Genymotion Path = not found Genymotion Executable = not found Genymotion Player = not found Home = not found VirtualBox Executable = not found Version = unknown Android SDK Android Executable = not found ADB Executable = not found SDK Path = not found Android NDK NDK Path = not found NDK Version = not found Android Platforms None Android Add-Ons None Android Emulators None Genymotion Emulators None Connected Android Devices None Xcode 7.0.1 (build 7A1001) - Xcode default Install Location = /Applications/Xcode.app/Contents/Developer iOS SDKs = 9.0 iOS Simulators = 9.0 Watch SDKs = 2.0 Watch Simulators = 2.0 Supported by TiSDK 5.0.2.GA = yes Teams = TCV3X9B3R8 Joe NGUYEN - Individual (active) iOS Keychains login.keychain = /Users/jeffreymessick/Library/Keychains/login.keychain System.keychain = /Library/Keychains/System.keychain iOS Development Certificates /Users/jeffreymessick/Library/Keychains/login.keychain Joe NGUYEN (66JXXQPG89) Not valid before = 10/1/2015 3:07 AM Not valid after = 9/30/2016 3:07 AM iOS Distribution Certificates /Users/jeffreymessick/Library/Keychains/login.keychain Joe NGUYEN (TCV3X9B3R8) Not valid before = 10/1/2015 3:07 AM Not valid after = 9/30/2016 3:07 AM Apple WWDR Certificate Apple WWDR = installed iPhone 6 9.0.2 iOS. Classic Code, Not Alloy. I had to reinstall 10.11 OS when it was released. I installed a fresh copy of Studio, CLI , node, 5.0.1.GA Imported my project. - Failed to connect. I got it to run 1 time, this morning and I got the error: [ERROR] : Script Error Couldn't find module: localeStrings for architecture: x86_64, not sure what is up with that. Was not able to get it to run again using live view. I can install it to the device NOT using Live View and everything is fine. Prior to I got the error's/issues even when I created a new project and ran it on the device with Live View enabled. See first Comments the I reported it.
  14. Rodolfo Perottoni 2015-10-05

    Host OS: Mac OS X OS Version: 10.10.5 OS Arch: x86_64 JRE Version: 1.8.0_40 JRE Vendor: Oracle Corporation JRE Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre Appcelerator Studio Version: 4.3.0.201509151348 Install Directory: file:/Applications/Appcelerator Studio/ Workspace Directory: file:/Users/RDPerottoni/Documents/Appcelerator_Studio_Workspace/ Language: en_US XCode Version: 7.0.1 Selected Titanium SDK: 5.0.1.GA Latest Titanium SDK: 5.0.1.GA Titanium SDK Version: 5.0.1.GA SDK Modules API Version:2 SDK Build Number: 9640236 SDK Location: /Users/RDPerottoni/Library/Application Support/Titanium/mobilesdk/osx/5.0.1.GA Node.JS Version: v0.10.37 NPM Path: /usr/local/bin/npm NPM Version: 1.4.28 Appcelerator CLI path: /usr/local/bin/appcelerator Appcelerator CLI core version : 5.0.2 APTANA_VERSION=4.3.0.1441219724 -- Steps. I've installed the new version of studio from the website (latest .dmg file). After importing my projects to studio, if i try to deploy an app to an iPhone 5c with iOS 9.0.1 with LiveView on i get that error. If i try to deploy with
    appc ti build -p ios -I 9.0 -T device —liveview
    the app is successfully installed but i get infinite red screens of death telling me that the liveview server wasn't found. Simulators are ok, but i'm having to close the liveview servers manually when closing the simulators, otherwise they stay opened (i believe there's already a bug report for that, but that's another subject).
  15. Fokke Zandbergen 2015-10-06

    [~cbarber] after upgrading to El Capitan I can now reproduce this with SDK 5.0.2, CLI 5.0.2, NodeJS 0.12.7: *Console*
        [ERROR] :  Failed to copy app to device (0xe8000005)
        [ERROR] :  For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
        
    *Device logs*
        Oct  6 19:44:01 iPhone-Fokke syslog_relay[2126] <Notice>: syslog_relay found the ASL prompt. Starting...
        Oct  6 19:44:04 iPhone-Fokke com.apple.StreamingUnzipService[2128] <Warning>: -[StreamingUnzipper _supplyBytes:length:withReply:]:1343: Invalid symlink: /private/var/mobile/Media/PublicStaging/LiveView.app/app.js -> /var/folders/cv/b296rfgs7t7bqsl6r03mg_4h0000gn/T/liveview.js (absolute symlinks are forbidden)
        
  16. Chris Barber 2015-10-06

    Well, maybe it's time to rip out the symlinking. :( It's too bad because it did help build times.
  17. Fokke Zandbergen 2015-10-06

    Go for it.
  18. Chris Barber 2015-10-07

    PR: https://github.com/appcelerator/titanium_mobile/pull/7278
  19. Chee Kiat Ng 2015-10-08

    PR approved and merged.
  20. Harry Bryant 2015-10-08

    Verifying as fixed, created a new default classic project and built to device with LiveView enabled. The error in question is no longer present and the app successfully builds to device, however upon launching the app receive the following error:
        [ERROR] :  Script Error Couldn't find module: localeStrings for architecture: arm64
        
    Is this error expected? and is there already an existing ticket regarding this issue? OSX El Capitan 10.11 Studio: 4.3.1.201509302304 Ti SDK: 5.1.0.v20151008153630 Appc NPM: 4.2.1-1 Appc CLI: 5.1.0-30
  21. Chris Barber 2015-10-08

    [~htbryant] You should not get that error. Can you create a test case and send it to me?
  22. Jeff Messick 2015-10-08

    Chris I am getting that error as well.
  23. Harry Bryant 2015-10-08

    [~cbarber] My steps were as follows: 1. Created default classic project. 2. 1st build to device (iOS 9) with LiveView enabled. 3. launch app when installation is complete. 4. Receive error. 5. 2nd build to device with LiveView disabled. 6. launch app when installation is complete. 7. No error.
  24. Chris Barber 2015-10-08

    [~htbryant] As your error states, the cause of the problem is the localeStrings CommonJS module. Classic Titanium apps do not have a dependency on this module. Again, please provide me with a test case and I will look at it.
  25. Harry Bryant 2015-10-09

    [~cbarber] I've sent the test case in Flowdock, as it exceeds the upload limit on Jira. Let me know if you need any more information.
  26. Chris Barber 2015-10-09

    [~htbryant] Yeah, the localeStrings error has nothing to do with this ticket. We'll take this discussion over to TISTUD-7747.
  27. Harry Bryant 2015-10-09

    [~cbarber] Cool, I thought so. Just wanted to confirm it before closing this ticket, Thanks.

JSON Source