Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23866] Windows: uap capability included when building for 8.1

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-09-08T01:39:29.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0
ComponentsWindows
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeGary Mathews
Created2016-09-05T13:43:26.000+0000
Updated2016-09-08T16:20:32.000+0000

Description

Description

When the CLI generates capabilities from API usage if a user is building for --wp-sdk 8.1 which is the default SDK version, then the build will fail with the below
[ERROR] C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\Package.appxmanifest(55,6): error APPX1402: Content of the file 'C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\Package.appxmanifest' is not well-formed XML. 'uap' is an undeclared prefix. Line 55, position 6. [C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\PpBootTC.vcxproj]
[ERROR] "C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\PpBootTC.sln" (default target) (1) ->
"C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\PpBootTC.vcxproj.metaproj" (default target) (2) ->
"C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\PpBootTC.vcxproj" (default target) (6) ->
(_ValidatePresenceOfAppxManifestItems target) ->
  C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\Package.appxmanifest(55,6): error APPX1402: Content of the file 'C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\Package.appxmanifest' is not well-formed XML. 'uap' is an undeclared prefix. Line 55, position 6. [C:\Users\ewan\.titanium\vsbuild\ppBootTC\phone.ARM\PpBootTC.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:30.66
This is because the uap:Capability is not valid for 8.1 SDK

Steps to reproduce

Add the following to your app,js Titanium.Media.openPhotoGallery({mediaTypes: \[Ti.Media.MEDIA_TYPE_PHOTO\]});

Build using Windows 8.1 SDK appc run -p windows -T wp-device --build-only

h5,Actual result The build will error out with the above error

Expected result

Build should not error out, correct capability should be used

Comments

  1. Kota Iguchi 2016-09-08

    Should be fixed by commits along with TIMOB-23156 .
  2. Ewan Harris 2016-09-08

    Verified using: OS: Microsoft Windows 10 Pro 10.0.14393 Appc core: 6.0.0-38 Appc NPM: 4.2.8-6 Ti SDK: 6.0.0.v20160908065418 Appc Studio: 4.8.0.201609070852 Lumia 520 8.1 uap capability is no longer included when building for 8.1 Closing ticket

JSON Source