{ "id": "165318", "key": "TIMOB-24318", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-10-19T03:58:56.000+0000", "created": "2017-01-16T19:19:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "app_certification", "certification", "merge-6.0.2", "store", "windows8.1", "windows_phone", "windows_store", "windowsphone" ], "versions": [ { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:52:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "I package the app with Appcelerator Studio and i submit the package to windows store but the windows store certification process failed with *2001 error code*.\r\nI try to test the package with tool *Windows App Cert Kit* and the certification process failed for this errors:\r\n{quote}\r\n*Error Found: The supported APIs test detected the following errors:* \r\nThis API is not supported for this application type Api=SuspendThread. Module=api­ms­win­core­processthreads­l11­2.dll. File=HAL.dll. \r\nThis API is not supported for this application type Api=ResumeThread. Module=api­ms­win­core­processthreads­l1­12.dll. File=HAL.dll. \r\nThis API is not supported for this application type Api=Sleep. Module=api­ms­win­core­synch­l1­2­0.dll. File=TitaniumWindows.dll. \r\n\r\n*Impact if not fixed:* Using an API that is not part of the Windows SDK for Windows Phone Store apps violates the Windows Phone Store certification requirements. \r\n*How to fix:* Review the error messages to identify the API that is not part of the Windows SDK for Windows Phone Store app. Please note, C++ apps that are built in a debug configuration will fail this test even if they only use APIs from the Windows SDK for Windows Phone Store apps. \r\n [Alternatives to Windows APIs in Windows Phone Store apps.|http://go.microsoft.com/fwlink/?LinkID=324326]\r\n\r\n{quote}\r\n\r\nCan you help me?\r\n\r\nThank you in advance ", "attachment": [ { "id": "61296", "filename": "TIMOB-24318-patch.zip", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T02:01:47.000+0000", "size": 6319158, "mimeType": "application/zip" }, { "id": "61259", "filename": "Windows App Certification Kit - Test Results.pdf", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-16T19:12:30.000+0000", "size": 142482, "mimeType": "application/pdf" } ], "flagged": false, "summary": "Windows App Certification Kit Failed", "creator": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "environment": "OS: Windows 8.1 Pro \r\nVisual Studio: 2013 Update 5\r\nAppcelerator Studio: 4.8.1 \r\nTitanium SDK: 6.0.1GA", "closedSprints": [ { "id": 959, "state": "closed", "name": "2017 Sprint 21 SDK", "startDate": "2017-10-08T20:38:15.130Z", "endDate": "2017-10-22T20:38:00.000Z", "completeDate": "2017-10-24T23:55:56.605Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404696", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I can reproduce the issue in the below environment\r\n\r\nWindows 8.1\r\nVisual Studio 2013\r\nTi SDK 6.0.1.GA\r\n\r\nh5.Steps to reproduce on above configuration\r\n\r\n# Create an app using {{appc new/ti create}}\r\n# Package the app for Windows Phone 8.1 using {{appc run/ti build -p windows -T dist-phonestore}}\r\n# Validate the app using Windows App Certification Kit\r\n\r\nHowever, *I am unable to reproduce in the following environment*\r\n\r\nWindows 10\r\nVisual Studio 2015 with 10 and 8.1 sdk\r\nTi SDK 6.0.1.GA\r\n\r\nh5.Steps on above configuration\r\n\r\n# Create a new app {{appc new/ti create}}\r\n# Package for Windows Phone 8.1 with {{appc run/ti build -p windows -T dist-phonestore --wp-sdk 8.1}}\r\n# Validate the app using Windows App Certification Kit\r\n\r\n\r\n*Notes*\r\n\r\nTaking the appxbundle produced with Windows 8.1/VS 2013 and running WACK on Windows 10 (WACK version 10.0.14393.33) does not produce the failure.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-01-17T14:14:40.000+0000", "updated": "2017-01-17T14:24:36.000+0000" }, { "id": "404699", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "Dear Ewan, you sugget to upgrade my OS to Windows 10 to solve the Microsoft Certification problem?", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-17T14:37:11.000+0000", "updated": "2017-01-17T14:37:11.000+0000" }, { "id": "404751", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am not quite convinced why Windows App Certification Kit fails for following functions even when they are marked \"*Supported on Windows Phone 8.1*\" :( I remember we haven't been failing this tests even we target WP 8.1, so I expect Microsoft changed its behavior at some point of the SDK update...\r\n\r\n* [SuspendThread|https://msdn.microsoft.com/en-us/library/windows/desktop/ms686345(v=vs.85).aspx]\r\n* [ResumeThread|https://msdn.microsoft.com/en-us/library/windows/desktop/ms685086(v=vs.85).aspx]\r\n* [Sleep|https://msdn.microsoft.com/en-us/library/windows/desktop/ms686298(v=vs.85).aspx]\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-18T01:18:30.000+0000", "updated": "2017-01-18T01:18:30.000+0000" }, { "id": "404753", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was not reproduce this issue when I use Windows 10 & Visual Studio 2015 with 10 and 8.1 SDK on my end, so I would think upgrading to them solve this certification problem. ", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-18T01:35:46.000+0000", "updated": "2017-01-18T01:35:46.000+0000" }, { "id": "404789", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "Dear Kota, with Windows App Certification Kit of Windows 10 the option \"Windows Phone 8.1\" is been deleted there is only option \"Validate Store App\".\r\nIf i selected \"Validate Store App\" option *the certification test passed*.\r\n\r\nBut when i submit the package (that have passed certification) to Windows Store, the windows store certification process failed with this error message:\r\n\r\n*This submission failed with error code(s) 2001. More info about the error(s) can be found here*\r\n\r\nWhere here is a page with this description:\r\n\r\n{quote}\r\nYou may see error 2001 when problems with Windows Phone packages are detected during preprocessing. In most cases, you will need to rebuild your app's package to correct the error. Once you've done that, replace the old package with the new one on the Packages page of the submission before you click Submit to the Store again.\r\n\r\nThere are a number of issues that may cause this error. Review the list below to determine which might apply to your packages.\r\n\r\nOne or more assemblies in the package are obfuscated incorrectly: Use a different tool to perform the obfuscation, or remove the obfuscation. The compile process optimizes the obfuscated assemblies, but occasionally some assemblies are obfuscated using a tool that modifies the MSIL in an unsupported way that will cause an error.\r\nThe size of one or more methods in the app exceeds 256 KB of IL: Refactor the offending method into smaller functions. The size of MSIL for methods in an assembly can be determined by using the ILDASM tool.\r\nThe strong name signature validation failed for one or more assemblies: This error typically occurs when the strong name signing was performed using a key different than the one expected in the assembly metadata. Sign with the correct key, or remove strong name signing.\r\nThe package contains mixed-mode (with managed and native code) assemblies: Mixed-mode assemblies are not supported on Windows Phone. Remove the mixed-mode assemblies from the package and resubmit the app.\r\nA Windows Phone 8.1 XAP or appx/appxbundle assembly is not valid: Make sure your .winmd file has at least one public entry point. You can use any decompiler application to review the code and check for public entry points if needed.\r\n{quote}", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-18T13:39:49.000+0000", "updated": "2017-01-18T14:49:39.000+0000" }, { "id": "404828", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Let me check, but [~luk3luk3] could you try latest nightly sdk? {{appc ti sdk install --branch master 6.1.0.v20170118152304}} You might also need to clean your project {{appc ti clean}} then.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-19T00:51:40.000+0000", "updated": "2017-01-19T00:51:40.000+0000" }, { "id": "404877", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "Dear Kota,\r\n\r\ni have tried to build with SDK 6.1.0.v20170118152304, Windows 10 *ti build -p windows -T dist-phonestore --wp-sdk 10.0* (--wp-sdk 8.1 encounter same certification problem) and i submitted the appxbundle to windows store.\r\n\r\nNow Device Family supported are only Windows 10 Desktop, Windows 10 Mobile, Windows 10 Holographic (Windows 8.1 are not supported).\r\n\r\nThe certification process passed the *Pre-processing* step where the previous build 8.1 stop with 2001 error.\r\n\r\nThe problems on wp10 and titanium SDK 6.1.0.v20170118152304 respect wp8.1 are several.\r\n\r\nFirst: the app random crash.\r\nSecond: the visual element as textfield, label, button and other elements have a different behavior with same tss style file. Example: textfield background color property don't work, label ti.Ui.Size don't work.\r\n\r\nSummarizing: wp8.1 app is much stable and stylish of wp10, but not pass certification process (*Pre-processing* step ) for not supported API.\r\n\r\nAbout Not supported API (SuspendThread, ResumeThread, Sleep) it is difficult to patch?\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-19T19:07:32.000+0000", "updated": "2017-01-19T20:53:54.000+0000" }, { "id": "404902", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{quote}\r\nAbout Not supported API (SuspendThread, ResumeThread, Sleep) it is difficult to patch?\r\n{quote}\r\n\r\n [~luk3luk3] I'm pushing fixes for them. I have create a patch, could you try [^TIMOB-24318-patch.zip] ?\r\n\r\n# Go to {{C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.0.v20170118152304\\windows\\lib}}\r\n# Rename {{HAL}} folder to {{_HAL}} (Just in case to restore them later)\r\n# Rename {{TitaniumWindows}} folder to {{_TitaniumWindows}} (Just in case to restore them later)\r\n# Copy {{HAL}} and {{TitaniumWindows}} folder from [^TIMOB-24318-patch.zip] \r\n# Copy {{_HAL/win10}} to {{HAL}} folder\r\n# Copy {{_TitaniumWindows/win10}} to {{TitaniumWindows}} folder\r\n# Then go to your project folder, {{appc ti clean}} and build your project", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T02:09:29.000+0000", "updated": "2017-01-20T02:13:18.000+0000" }, { "id": "404918", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "Dear Kota,\r\n\r\nFirst thank you for support!\r\n\r\ni download and applied your fix.\r\n\r\nStep 1 OK\r\nStep 2 OK\r\nStep 3 OK\r\nStep 4 OK\r\nStep 5 and Step 6 not applied on WP8.1 beacuse win10 folder not exists.\r\nStep 7 OK\r\n\r\nIf i start package dist with wp8 and i receive an error because in the HAL folder there was no include dir. I resolved copying the include folder from old HAL_ folder.\r\n\r\nFinally when i submit the appxbundle to App Certification Kit 3.3 of Windows 8.1 *the result test is PASSED*.\r\n\r\nBut if i submit the appxbundle to Windows Store after 2 minutes i *receive the 2001 error in Pre-Processing step* (I have already written to Microsoft support to help me on this problem).\r\n\r\nFor now only appxbundle based on WP10 have passed the *Pre-Processing step* on Windows Store (But on WP10 as reported in previous comment the app random crash, and the visual element as textfield, label, button and other elements have a different behavior with same tss style file. Example: textfield background color property don't work, label Ti.Ui.Size don't work).\r\n\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-20T11:10:24.000+0000", "updated": "2017-01-20T11:10:24.000+0000" }, { "id": "405144", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "This is reply from Microsoft Support Team about 2001 error code:\r\n\r\n{quote}\r\nHello, \r\n\r\nI appreciate your response. I reached out to the certification team and they were not able to narrow down the error or the cause of it. Due to the 2001 error that you received on the submission, you will need to troubleshoot with the suggestions below.\r\n\r\n\"You may see error 2001 when problems with Windows Phone packages are detected during preprocessing. In most cases, you will need to rebuild your app's package to correct the error. Once you've done that, replace the old package with the new one on the Packages page of the submission before you click Submit to the Store again.\r\n \r\nThere are a number of issues that may cause this error. Review the list below to determine which might apply to your packages.\r\n\r\nOne or more assemblies in the package are obfuscated incorrectly: Use a different tool to perform the obfuscation, or remove the obfuscation. The compile process optimizes the obfuscated assemblies, but occasionally some assemblies are obfuscated using a tool that modifies the MSIL in an unsupported way that will cause an error.\r\n\r\nThe size of one or more methods in the app exceeds 256 KB of IL: Refactor the offending method into smaller functions. The size of MSIL for methods in an assembly can be determined by using the ILDASM tool.\r\n\r\nThe strong name signature validation failed for one or more assemblies: This error typically occurs when the strong name signing was performed using a key different than the one expected in the assembly metadata. Sign with the correct key, or remove strong name signing.\r\n\r\nThe package contains mixed-mode (with managed and native code) assemblies: Mixed-mode assemblies are not supported on Windows Phone. Remove the mixed-mode assemblies from the package and resubmit the app.\r\n \r\nA Windows Phone 8.1 XAP or appx/appxbundle assembly is not valid: Make sure your .winmd file has at least one public entry point. You can use any decompiler application to review the code and check for public entry points if needed.\"\r\n{quote}", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-24T08:53:00.000+0000", "updated": "2017-01-24T08:53:35.000+0000" }, { "id": "405245", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hmm, so basically Microsoft provides no useful information, right...? :( So 2001 error code indicates some possibilities but as far as I can see we don't have issues with it (We once saw it in TIMOB-20192, and we resolved it).\r\n\r\n- We only do native code (C++/CX), so there's no mixed-mode code\r\n- Only managed code (VB/C#) uses strong name signing.\r\n- We don't do anything special to obfuscate code either.\r\n- All .winmd has at least one public entry point (Can be determined by ILDASM tool)\r\n- Assemblies are not exceeding 256 KB 256KB of IL (Can be determined by ILDASM tool)\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T07:40:16.000+0000", "updated": "2017-01-25T07:40:16.000+0000" }, { "id": "405255", "author": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "body": "Yes, \r\n\r\nKota is third email to Microsoft Support Center but no useful reply i have received.\r\n\r\nI have asked to Microsoft the log of certification process of my app (as the log that you can produce with Microsoft App Certification Kit), now i am waiting for reply.\r\n\r\nIf i port my app on Windows Mobile 10 the certification process pass. I don't know where is the problem on Windows Mobile 8.\r\n\r\nWhy I have to limit the application to Windows Mobile 10 smartphones when the app can be installed also on older smarphone given that does not require special feautures of WP10? No reply of Microsoft...\r\n\r\n", "updateAuthor": { "name": "luk3luk3", "key": "luk3luk3", "displayName": "Luca Sartori", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-25T09:27:45.000+0000", "updated": "2017-01-25T09:27:45.000+0000" }, { "id": "429270", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this, I would consider this is not our bug (even Microsoft was not able to resolve this) and also Microsoft no longer supports Windows Phone 8.1.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-19T03:58:56.000+0000", "updated": "2017-10-19T03:58:56.000+0000" }, { "id": "440289", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as \"not our bug\". If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:52:08.000+0000", "updated": "2018-08-06T17:52:08.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }