Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23157] Windows: Building native module using "appc ti" fails

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-05-10T02:31:46.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-04-06T06:57:58.000+0000
Updated2016-06-28T11:16:44.000+0000

Description

Building native module using appc ti build fails with uncaught exception. Building with ti build went through.
$ appc ti create -p windows -t module
$ cd MY_MODULE/windows
$ appc ti build -p windows --target ws-local
-- WindowsModuleBuilder loginfo
INFO]  Visual Studio version: 14.0
INFO]  MSBuild version: 14.0.24720.0
INFO]  Project directory: TIMOB23148\windows
016-04-06T06:50:27.853Z | ERROR  | An uncaught exception was thrown!
NOENT, no such file or directory 'TIMOB23148\windows\tiapp.xml'
016-04-06T06:50:27.869Z | ERROR  | ENOENT, no such file or directory 'TIMOB23148\windows\t pp.xml'
016-04-06T06:50:27.885Z | TRACE  | Error: ENOENT, no such file or directory 'TIMOB23148\wi
ows\tiapp.xml'
   at Error (native)
   at Object.fs.openSync (fs.js:500:18)
   at Object.fs.readFileSync (fs.js:352:15)
   at precompileHook (.appcelerator\install\5.2.2\package\node_modules\appc-cli-titanium\hook\titanium.j
192:14)
   at cli.addHook.post (.appcelerator\install\5.2.2\package\node_modules\appc-cli-titanium\hook\titanium
s:88:4)
   at .appcelerator\install\5.2.2\package\node_modules\titanium\lib\hook.js:235:13
   at .appcelerator\install\5.2.2\package\node_modules\titanium\node_modules\async\lib\async.js:689:13
   at iterate (.appcelerator\install\5.2.2\package\node_modules\titanium\node_modules\async\lib\async.js
65:13)
   at process._tickCallback (node.js:355:11)

$ ti build -p windows
...
[INFO] Done

Comments

  1. Kota Iguchi 2016-04-07

    Per [~gmathews] {quote}
       appc new -t timodule -n winModule --id com.win.module
       cd winModule\windows
       appc run -p windows -T ws-local --wp-sdk 10.0 -l trace
       
       ERROR  | An uncaught exception was thrown!
       ENOENT, no such file or directory 'C:\Users\gmathews\projects\winModule\windows\tiapp.xml'
       
    It should be looking for `timodule.xml`, although I this is a separate issue related to the CLI. {quote}
  2. Gary Mathews 2016-05-03

    I just tested this on 5.4.0.v20160502140437, it seems to work? Although I did add --build-only since it is a module.
       appc new -t timodule -n module --id com.win.module --no-services
       cd module\windows
       appc ti build -p windows --build-only
       
       [INFO]  Visual Studio version: 14.0
       [INFO]  MSBuild version: 14.0.24720.0
       [INFO]  Project directory: C:\Users\gmathews\projects\module\windows
       [INFO]  Skipping C:\Users\gmathews\projects\module\windows\WindowsStore.ARM\ComWinModule.sln
       [INFO]  Creating zip: com.win.module-windows-1.0.0.zip
       [INFO]  Done.
       [INFO]  Project built successfully in 19s 875ms
       
  3. Kota Iguchi 2016-05-10

    Confirmed this does work for now. You can use appc ti build -p windows to build module for Windows.
  4. Ewan Harris 2016-06-28

    Removing fixVersion and closing.

JSON Source