React native windows - 应用认证工具包失败

React native windows - app certification kit failed

我正在制作简单的本机反应应用程序。 Android 版本工作正常(已经在 Google 播放)。 Windows 版本也可以,但无法通过认证套件应用程序。 我已经根据文档构建了发布包:

https://github.com/Microsoft/react-native-windows/blob/master/docs/RunningOnDeviceWindows.md

应用程序认证工具包return 错误:

Type ReactNativeWebViewBridge.MessagePostedEventArgs in file ReactNativeWebViewBridge.winmd is not sealed and does not have the ComposableAttribute. Unsealed types must have ComposableAttribute.

API getenv in api-ms-win-crt-environment-l1-1-0.dll is not supported for this application type. ImagePipelineNative.dll calls this API.

使用 Visual Studio 2017 年构建。

我是不是漏掉了什么?

感谢您的帮助!

Type ReactNativeWebViewBridge.MessagePostedEventArgs in file ReactNativeWebViewBridge.winmd is not sealed and does not have the ComposableAttribute. Unsealed types must have ComposableAttribute.

错误信息已经解释清楚了。您需要在 ReactNativeWebViewBridge 中对 MessagePostedEventArgs class 使用 sealed 修饰符。如果您没有使用 sealed,则需要使用 ComposableAttribute。关于ComposableAttribute的更多信息,您可以参考James McNellis在这个帖子中的回答:What is the ComposableAttribute in WinRT?

API getenv in api-ms-win-crt-environment-l1-1-0.dll is not supported for this application type. ImagePipelineNative.dll calls this API.

此错误意味着 ImagePipelineNative.dll 在 UWP 中调用了一些不受支持的 API。您需要在 react-native 的存储库中创建一个 issue