[AC-814] Build fails when using native API call (Windows.UI.Xaml.Controls.WebView)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-12-22T08:54:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | Hyperloop, Windows |
Reporter | Toshiro Yagi |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-12-17T19:46:59.000+0000 |
Updated | 2016-03-08T07:37:05.000+0000 |
Description
Build fails with this simple line:
[WARN] Unable to find metadata for: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
[WARN] Something went wrong. No metadata for type: [mscorlib]System.Guid
[WARN] Unable to find metadata for: [mscorlib]System.Guid
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
No metadata found for: string[]
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
var webView = require('Windows.UI.Xaml.Controls.WebView');
Same result with -T wp-emulator and ws-local.
Error log:
{noformat}
[INFO] Alloy compiled in 11.81509s
[INFO] Alloy compiler completed successfully
[INFO] Launching emulator: 8-1-1
[INFO] Missing 3 app icons, generating missing icons
[INFO] Square44x44Logo.png - Used for logo - size: 44x44
[INFO] Square71x71Logo.png - Used for logo - size: 71x71
[INFO] Square150x150Logo.png - Used for logo - size: 150x150
[INFO] Processing JavaScript files
[INFO] Detected native API reference: Windows.UI.Xaml.Controls.WebView
[INFO] Generating i18n files
[INFO] Generating Native Type Wrappers
[WARN] Unable to find metadata for: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
[WARN] Something went wrong. No metadata for type: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
[WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperationWithProgress2<K,V>
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
22<string,object>
[WARN] Unable to find metadata for: Platform.Object
[WARN] Unable to find metadata for: Platform.Object
[WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperation
12<string,class Windows.Storage.Streams.RandomAccessStreamReference>
No metadata found for: [mscorlib]System.Guid
No metadata found for: [mscorlib]System.Guid
No metadata found for: [mscorlib]System.Guid
No metadata found for: uint8[]
No metadata found for: uint8[]
No metadata found for: uint8[]
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
22<string,object>
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
22<string,object>
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
22<string,object>
No metadata found for: Windows.Foundation.Collections.IVector
12<object,object>
No metadata found for: Windows.Foundation.Collections.IKeyValuePair
2
Hello [~toshiro], Please provide a complete test case that we can use to regenerate the issue. Also please specify your complete environment information. Thanks.
Uh oh, I somehow failed to give you needed information. Reproducing this problem is rather simple. Create a project, open app/controllers/index.js and just add one line.
And build command is:
or
I've already provided my environment info above, and I do admit "Windows 10 *61bit*" was weird typo that has been fixed so now you can reproduce this error with serious face ;-) And one more thing, if you uncomment "Windows.UI.Xaml.Window" line and comment out "Windows.UI.Xaml.Controls.WebView", build ends successfully (only when your build target is wp-emulator or wp-device).