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
Should be fixed by commits along with TIMOB-23156 .
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