[AC-3610] Windows: wptools.js fails when installing application with native module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-05-12T08:29:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Jonas Bjurhult |
Assignee | Shak Hossain |
Created | 2016-05-10T05:43:18.000+0000 |
Updated | 2016-05-12T08:37:25.000+0000 |
Description
I started getting the problem at SDK 5.4.0.v20160503001406 and it has been present since then. I tested using 5.4.0.v20160509133737 today and still get the same error.
SDK <= 5.4.0.v20160428075219 works fine
Steps to reproduce:
1. Create native windows module:
in tiapp.xml:
ti create -p windows -t module"
2. Build module:
cd <module_name>\windows
ti build -p windows -t wp-local
3. Copy resulting zip file to existing mobile app project
4. include
<modules>
<module platform="windows">module_name</module>
</modules>
5. Build using CLI:
appc ti build --platform windows --target wp-device
Result:
[INFO] Project built successfully in 2m 382ms
[INFO] Installing the application...
[ERROR] The remote procedure call failed.
[ERROR] Error: The remote procedure call failed.
at ChildProcess.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160509133737\node_modules\windowslib\lib\wptool.js:762:10)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Hello, I am able to build and run on Windows Phone Emulator with SDK
5.4.0.v20160509133737
without any error using following command.But I am not able to build and run on Windows Phone Device with SDK
5.4.0.v20160509133737
using following command.*Error log:*
Build and run works fine on device and emulator with SDK
5.4.0.v20160405161149
Thanks *Environment*: *OS :* Microsoft Windows 8.1 Enterprise N *Device info:* Microsoft Lumia 640 (Windows Phone 8.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.4.0.v20160509133737 *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.5.0Did you include a native module in your build?
Hello [~jonasbjurhult], We do not give support for Windows Phone module development yet. This support will start soon. You will have to wait till then to get support for Windows Phone module development. Thanks for your understanding
Supporting module development has to work from day one when you support Windows since you have so little support in Windows for example for background service (TimeTrigger) which is part of our app delivering to client end of May, we have ongoing touch point to support this and so not supporting this/us in this case is not an option, Please escalate to Chris och Kota, I will contact support to understand this issue. And since it is rather obvious that a module creates this kind of problem in later SDKs there is a regression you have to fix. Let me know if you have more questions... I am currently running the app with 20160420 SDK where it works, but anything above that does not execute. Module development is a central part of all your targets.. Thanks