Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18316] Windows: Cannot launch app into emulator with "Failed to install app" error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-07T16:19:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsWindows
Labelswindows-8, windows8
ReporterLeor Brenman
AssigneeChristopher Williams
Created2015-01-06T14:50:18.000+0000
Updated2015-01-08T14:30:17.000+0000

Description

Win8 Preview, cannot launch app into emulator or device I am following the instructions from the Blog Post (http://www.appcelerator.com/blog/2014/12/windows-platform-preview/) When i launch to the emulator, using: ti build -p windows -T wp-emulator -C 8-1-1 --wp-publisher-guid 00000000-0000-1000-8000-000000000000 it builds and installs the app on the emulator but exists immediately Error message is: [ERROR] Failed to install app (code -2146233088) Terminal log with "ti info" and screen shot attached

Attachments

FileDateSize
Screen Shot 2015-01-06 at 9.43.00 AM.png2015-01-06T14:50:18.000+00003967444
Screen Shot 2015-01-07 at 3.39.26 PM.png2015-01-07T20:44:49.000+00001791943
win8_console_log.rtf2015-01-06T14:50:18.000+000014020

Comments

  1. Christopher Williams 2015-01-06

    Note that This exact error was happening for users in the Titanium Contributors flow as well. There's a related issue open for windowslib to better surface the underlying error messages here: https://github.com/appcelerator/windowslib/issues/5 In this case, the user(s) on the Titanium Contributor flow reported that the true error message was:
       Error: Package failed updates, dependency or conflict validation.
       
  2. Leor Brenman 2015-01-06

    Thanks Chris, is there a workaround or solution that I can try out or am i stuck?
  3. Christopher Williams 2015-01-07

    I think I've found the issue. Basically this will happen if the DLLs fail to load as Gary states, and this is a direct result of some sort of build issue either on our building/packaging on Jenkins, or in the cmake setup we use for the user projects. In this case, I believe it was both, resulting from new modules being adding as separate libraries - specifically The "Ti" module. When a new module is added, or sometimes even when dependencies between modules change, it requires tweaks to our build to make sure we pick up the generated libs when we package up the SDK on Jenkins - and it requires tweaks to the cmake scripts to be able to reference and find the built library.
  4. Christopher Williams 2015-01-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/75
  5. Christopher Williams 2015-01-07

    So one of the reasons why we only saw this on some people's machines was when they installed the SDK. If they installed the SDK before the new "Ti" module got in, it should have worked. But anyone who tried an SDK after that would get this failure (which is why so many of the end users are seeing this).
  6. Leor Brenman 2015-01-07

    Thanks Chris. Is there some workaround for me? I did have older SDKs and Ti installed. I can uninstall and try to resin tall again if you think that may work?
  7. Christopher Williams 2015-01-07

    [~lbrenman] The PR just got merged and the SDK is building. Once it's done you should be able to just do a ti sdk install -b master -d and get the fix. You'll have to modify your existing project to use that SDK version in the tiapp.xml. Given historical build times, I'd expect the build to be done about 45 minutes from now.
  8. Christopher Williams 2015-01-07

    FYI, I just verified using the latest master build and it worked for me, so hopefully you can try now [~lbrenman].
  9. Leor Brenman 2015-01-07

    Hi Chris, I just tried and it worked!!! Thanks for the taking care of this so quickly.
  10. Leor Brenman 2015-01-07

    Screen shot of everything working well

JSON Source