Project: titanium
Issue TIMOB-23158: Windows: Use of native module for UWP 10.0 fails
Enabling native module for Windows 10 app ({{--wp-sdk 10.0}}) causes build error. It is because Titanium CLI tries to link {{win10\x86|arm\XXX.lib}} but we don't build native module for {{win10}} target. Let say you have created and installed your custom module named {{com.appcelerator.TIMOB23148}}. {code:javascript} var TIMOB23148 = require('com.appcelerator.TIMOB23148'); var win = Ti.UI.createWindow({backgroundColor:'green'}); win.addEventListener('open', function() {	Ti.API.info(typeof TIMOB23148);	Ti.API.info(Object.keys(TIMOB23148));	Ti.API.info(typeof TIMOB23148.myproperty);	Ti.API.info(typeof TIMOB23148.myfunction); }); win.open(); {code} This causes error when you build against {{--wp-sdk 10.0}} {code} ti build --platform windows --target ws-local --wp-sdk 10.0 [ERROR] LINK : fatal error LNK1181: cannot open input file 'C:\ProgramData\Application Data\Titanium\modules\windows\com.appcelerator.TIMOB23148\1.0.0\win10\x86\ComAppceleratorTIMOB23148.lib' [TitaniumWindows_Native.vcxproj] {code}
Story points: 8