Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4989] Can't build under Windows

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2017-05-31T15:24:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterLuc-Edmond Gaspard
AssigneeShak Hossain
Created2017-05-23T20:51:19.000+0000
Updated2017-05-31T15:24:56.000+0000

Description

Problem

While trying to build an android application on Windows 10, with no windows phone sdk installed, the build crash.

Logs

C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\windows\cli\commands\_build\config\wpSDK.js:24
        sdkTargets = sdkTargets.concat(this.windowsInfo.windowsphone[version].sdks);
                                                                      ^
TypeError: Cannot read property 'sdks' of undefined
    at WindowsBuilder.configOptionSDK (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\windows\cli\commands\_build\config\wpSDK.js:24:71)
    at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\windows\cli\commands\_build\config.js:124:23)
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\lib\hook.js:256:13
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:3853:9
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:484:16
    at replenish (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:1025:25)
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:1034:9
    at eachOfLimit (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:1061:22)
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:1066:16
    at _parallel (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\async\dist\async.js:3844:5)
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\node-appc\lib\subprocess.js:59:8)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\env.js:90:22
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\node-appc\lib\subprocess.js:129:3
    at ChildProcess.exithandler (child_process.js:193:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:854:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
---------------------------------------------
    at Object.exports.execFile (child_process.js:285:9)
    at exports.exec (child_process.js:99:18)
    at Object.getRealName (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\node-appc\lib\subprocess.js:128:2)
    at powershell (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\env.js:85:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:718:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:262:13)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:274:29
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:44:16
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:723:17
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\node-appc\lib\subprocess.js:59:8)
    at osInfo (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\env.js:71:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:718:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:262:13)
    at async.forEachOfSeries.async.eachOfSeries (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:281:9)
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:717:9)
    at Object.async.series (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:739:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\env.js:69:9
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\env.js:41:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\index.js:80:8
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:181:20
    at Object.async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:233:13)
    at Object.async.forEach.async.each (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\node_modules\async\lib\async.js:209:22)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\index.js:79:9
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\windowslib\index.js:58:9)
    at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\windows\cli\commands\_build\config.js:99:14)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\node-titanium-sdk\lib\titanium.js:99:5
    at C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\async\dist\async.js:3816:26
    at eachOfArrayLike (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\async\dist\async.js:1039:9)
    at eachOf (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\async\dist\async.js:1087:5)
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\async\dist\async.js:3815:5)
    at Object.parallelLimit [as parallel] (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170519131839\node_modules\async\dist\async.js:3898:3)
---------------------------------------------
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:2111:9
    at apply (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:21:25)
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:56:12
    at _insert (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:2220:9)
    at Object.q.push (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:2267:13)
    at Object.findExecutable (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\node_modules\node-appc\lib\subprocess.js:113:8)
    at resolveNode (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\lib\titanium.js:97:34)
    at C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\lib\titanium.js:74:5
    at Object.<anonymous> (C:\Users\COM370\AppData\Roaming\nvm\v4.8.0\node_modules\titanium\lib\titanium.js:80:2)

Attachments

FileDateSize
ti-info.txt2017-05-23T20:51:07.000+00008762

Comments

  1. Sharif AbuDarda 2017-05-29

    Hello, Try using the latest SDK 6.0.4.GA.
  2. Gary Mathews 2017-05-31

JSON Source