[TIMOB-23157] Windows: Building native module using "appc ti" fails
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-05-10T02:31:46.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2016-04-06T06:57:58.000+0000 |
Updated | 2016-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
Per [~gmathews] {quote}
It should be looking for `
timodule.xml
`, although I this is a separate issue related to the CLI. {quote}I just tested this on
5.4.0.v20160502140437
, it seems to work? Although I did add--build-only
since it is a module.Confirmed this does work for now. You can use
appc ti build -p windows
to build module for Windows.Removing fixVersion and closing.