[TIMOB-19750] TiSDK 4.1 Example App doesn't run with Visual Studio 2015 Community on Windows 10...
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-12-16T15:46:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | Mobile, Windows, ipass1 |
Reporter | Henry David Spells III |
Assignee | Christopher Williams |
Created | 2015-08-05T23:07:55.000+0000 |
Updated | 2017-03-30T01:05:30.000+0000 |
Description
I'm trying to get the Ti SDK 4.1 Example App and eventually my app built under Windows 10
I have Appcelerator Studio, build: 4.1.1.201507141126 installed on Windows 10 Pro (released)
No appcelerator updates were found
OS Name Microsoft Windows 10 Pro
Version 10.0.10240 Build 10240
The Windows, Android and Mobile Web SDKs are installed
I have Visual Studio 2015 Community version 14.0.23107.0 D14REL installed
When I run the Windows Phone Developer Power Tools 8.1 I can connect to an emulator
I have "Debug" selected in the "Run/Debug/Profile/Test/Package" dropdown
I have tried selecting several of the windows mobile emulators including "Emulator 8.1 1080P 5.5 inch" and "Emulator 10.0.10240.0 720p 5 inch 1 GB" from the target drop down list.
When I click on the green "Debug" button absolutely nothing happens in the console window even if the emulator is already launched from the Power Tools
I noticed that node 0.12.2 was installed already so I installed nvmw and node v0.10.13 which is working properly on my Mac. However the problem still persists. I click on the "Debug" button and nothing happens.
When I run app run -p windows -C "Emulator 8.1 1080P 6 inch" I do get some output. I get an error that says
CMake error at CMakeLists.txt:15 (project):
A windows Phone component with CMake requires both the Windows Desktop SDK
as well as the Windows Phone "8.1" SDK. Please make sure that you have
both installed.
Since I have Visual Studio Community 2015 Version 14.0.23107.0 D14REL (release version) installed I believe that the SDKs must be there and Appcelerator Studio just doesn't know where to find them.
I have the Windows SDK Home: preference set to "C:\Program Files (x86)\Microsoft SDKs" which is what I assume it should be so I'm not sure what to try next.
I tried switching the Windows SDK Home to be C:\Program Files (x86)\Microsoft Visual Studio 14.0 I tried running the "Employee Directory" app Here is the output from the console. Any acknowledgement at this point would be helpful. Is this just not working with the new tools? Is this specific to my machine? Am I just pointing to the wrong SDK? I've tried to point to several locations for the Windows SDK Home and no one has responded that it is correct / incorrect for Windows 10 / The current tools. Appcelerator Command-Line Interface, version 4.1.2 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "C:\\Users\\dspells\\.appcelerator\\install\\4.1.2\\package", "C:\\Users\\dspells\\.appcelerator\\install\\4.1.2\\package\\node_modules", "C:\\WINDOWS\\system32\\node_modules", "C:\\WINDOWS\\node_modules", "C:\\node_modules", "C:\\Users\\dspells\\.appcelerator\\.npm\\lib\\node_modules" ] DEBUG | [PLUGIN-LOAD] 0ms C:\Users\dspells\.appcelerator\install\4.1.2\package\appc.js DEBUG | [PLUGIN-LOAD] 536ms C:\Users\dspells\.appcelerator\install\4.1.2\package\node_modules\appc-cli-titanium\appc.js DEBUG | [PLUGIN-LOAD] 0ms C:\Users\dspells\.appcelerator\install\4.1.2\package\node_modules\arrow\appc.js log level set to "trace" executing command "run" set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"} checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1439318553796 false Arrow Cloud config file: C:\Users\dspells\.acs found Arrow Cloud login { mid: '2d4bca5bfbdceb7db1cabf21cd1aafe07d69b4fd', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', username: 'dspells@me.com', cookie: [ 'connect.sid=s%3AcglAcxQGl6OCSmemQV9IkKu7.z8jd0bDgEY7%2F4K6MkjvSG9pqhJ6l4OyioeemQK88wJM; Path=/; Expires=Tue, 11 Aug 2015 18:42:35 GMT; HttpOnly' ], defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com Arrow Cloud cookie expiry [ 1439318555000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "169.254.80.80", "username": "dspells@me.com", "password": "
We have not yet certified or officially support Windows 10 or Visual Studio 2015 (which were released not too long ago). We support Windows 8.1 and Visual Studio 2013 officially. According to the error message it seems likely that you do not the have the Windows 8.1 Phone and Store/Desktop SDKs installed. Since you're using VS2015 and Windows 10, it's likely that it has Win 10 SDKs installed, not 8.1.
Hi Chris, Thank you for you reply. What you said makes sense to me but do you have the plan to support win 10 in the near future? We'd love to use the latest and greatest operating system and development tools to work on our projects. If there is a work around for now we would also happily accept it.
Looks like this likely related to VS2015 and CMake incompatibility. I believe that we use a generator string of "Visual Studio 12 2013", which choose VS2013 toolchain. Ultimately, CMake then uses the code here to search for the SDKs: https://github.com/Kitware/CMake/blob/master/Source/cmGlobalVisualStudio12Generator.cxx#L219 My guess is that the search for the Windows Desktop SDK fails, because the toolchain version changed from 12.0 to 14.0:
So it seems to me, we may need to work around the issue in our CLI by detecting which VS version is installed and using that to change the generator string we use ("Visual Studio 14 2015" vs "Visual Studio 12 2013").
If you're using VS 2015, please try installing the Windows Phone 8.1 SDK as well. It should be here: https://www.microsoft.com/en-us/download/details.aspx?id=43719 That may fix the issue.
Hi Chris, I've already tried installing the windows phone 8.1 SDK but it didn't work. Maybe it's the generator string issue you mentioned earlier. Hope it's going to be fixed soon.
I tried running this "https://www.microsoft.com/en-us/download/details.aspx?id=43719" and it did update the number of emulators on the list but it still gets the same CMake error. BTW: Please tell me where the official Windows SDK Home preference should be set? Is it "C:\Program Files (x86)\Microsoft SDKs" or "C:\Program Files (x86)\Microsoft Visual Studio 14.0"? Also, if I uninstall VS 2015 Community and install VS 2013 Community should it work?
For VS 2015 support, my understanding is that Windows Phone 8.1 SDK is only installed with VS 2013, so in order to develop Windows Phone 8.1 app you actually need to install VS 2013 (with Windows Phone SDK) too, even when you prefer to use VS 2015. https://dev.windows.com/en-us/develop/download-phone-sdk
FYI I experienced that upgrading Windows 8.1 to Windows 10 broke my Visual Studio installation. At the time my Visual Studio was not able to create new Windows Phone project, and I ended up cleaning everything and re-install Windows 10...
[~fokkezb] Until 5.1.0 SDK, we do not support anything other than Windows 8.1 and Visual Studio 2013 officially. Kota's made some changes to support Windows 10 and VS 2015 for building Windows 8.1 apps in the 5.1.0 stream.
We might want to clarify http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Windows_Phone_SDK-section-43306274_InstallingtheWindowsPhoneSDK-VisualStudio which could be read as Visual Studio 2015 being "higher" then VS2013 Community as well.
ok [~fokkezb], created ticket for it. [~gmathews], Could you look into TIMOB-19789? I think our documentation is little bit obsolete, we want to add documentation about Visual Studio 2015 and Windows 10 support.
Until the 5.1.0 release we did not officially support use of Visual Studio 2015 for windows apps. Now that we do, you still must install the Windows 8.1 SDK and Windows Phone 8.1 SDK and emulators to be able to build (as we still target 8.1). As of 6.0.0 we should officially support Windows (Phone and Desktop) 8.1 _and_ 10.0 as build targets. We have preliminary support for 10.0 in the upcoming 5.2.0 release, but I'd still say wit was "unofficially supported" until 6.0.
Thanks for the update on the issue. Since this bug is no longer being tracked can you point me to a tracking item in the database that I can watch concerning support for using Appcelerator on Windows 10?
This epic appears to be for Windows 10 mobile. I just want to be able to run appcelerator on and Windows 10 machine. Are these problems tied together?
Closing this, as I believe this ticket is obsolete. [~lmorris] Thanks for the heads up.