布尔值的 Flutter Unknown 键:EnableTransactions

Posted

技术标签:

【中文标题】布尔值的 Flutter Unknown 键:EnableTransactions【英文标题】:Flutter Unknown key for Boolean: EnableTransactions 【发布时间】:2018-03-03 08:00:24 【问题描述】:

在我将 XCode 更新到版本 9 后,当我想在 ios 11 模拟器中启动应用程序时,我总是会得到一大堆几乎相同的错误。到目前为止,我还没有测试过早期的 ios 版本,但 ios 10 在 XCode 更新之前运行良好。

Launching lib/main.dart on iPhone X in debug mode...
Running Xcode build...
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.videosubscriptionsd): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.ServerDocuments.ServerFileProvider): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.ServerDocuments.ServerFileProvider): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:18 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.Networking): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.Networking): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.Databases): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.Databases): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AnnotationKit.MigratorService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Safari.ImageDecoder): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Safari.History): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.FileProvider.LocalStorage): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.FileProvider.LocalStorage): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.CloudDocs.MobileDocumentsFileProvider): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.CloudDocs.MobileDocumentsFileProvider): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.CloudDocsDaemon.container-metadata-extractor): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.CloudDocsDaemon.container-metadata-extractor): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.mobileslideshow.PhotosFileProvider): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:19 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.mobileslideshow.PhotosFileProvider): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.intents.intents-image-service): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.DictionaryServiceHelper): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.AssetCacheLocatorService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.Photos.CPLDiagnose): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.StreamingUnzipService): Unknown key for Boolean: EnablePressuredExit
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnableTransactions
Sep 21 22:35:20 Lukass-MBP com.apple.CoreSimulator.SimDevice.8EADD4B6-5B22-4172-8A40-C8EE4D533825[5282] (com.apple.uifoundation-bundle-helper): Unknown key for Boolean: EnablePressuredExit

由“flutter create app”生成的标准应用程序运行,但会显示大问题列表。但是,如果我运行我的其他应用程序,它会因这些错误而崩溃。这是一个已知问题吗?有解决办法吗?

【问题讨论】:

我也遇到了类似的错误,即使我尝试运行他们的股票应用程序也是如此。你能在 iOS 11 模拟器中运行 Safari、照片应用吗?它在所有 iOS 11 模拟器设备上不断崩溃。如果我运行 iOS 9.2 就可以了。模拟器虽然。我的问题在这里:***.com/questions/46430608/… 你找到解决办法了吗? 我在 IOS 11 模拟器上遇到了同样的错误,(com.apple.WebKit.WebContent): Unknown key for Boolean: EnablePressuredExit,它适用于较低的 IOS 版本,有什么解决方案吗?会不会是 IOS 11 的错误? 【参考方案1】:

对于所有也面临这个问题的人,我的解决方案是:

我做了这些步骤:

按照 Xcode 签名流程配置您的项目:通过在 Flutter 项目目录的终端窗口中运行 open ios/Runner.xcworkspace,打开项目中的默认 Xcode 工作区。在 Xcode 中,选择左侧导航面板中的 Runner 项目。在 Runner 目标设置页面中,确保在 General > Signing > Team 下选择了您的 Development Team。当您选择一个团队时,Xcode 会创建并下载开发证书,使用您的帐户注册您的设备,并创建和下载配置文件(如果需要)。

通过这些步骤,我解决了我在问题中提到的问题,但又出现了另一个问题。

编辑: 在我卸载了flutter并再次克隆了repo之后,我解决了所有这些问题,但是这次master分支不是flutter页面上的入门教程中提到的alpha。

来自颤振页面: git clone -b alpha https://github.com/flutter/flutter.git

修复: git clone -b masterhttps://github.com/flutter/flutter.git

【讨论】:

我正在使用Xamarin,但我认为您的解决方案不适合我。在我升级到 IOS 11 之前它运行良好,不过感谢分享您的解决方案 他们“布尔的未知键”问题消失了,应用程序不再崩溃,但现在我面临无法热重载的问题。但是,如果您说您在使用 Xamarian 时遇到了同样的问题,那么 Apple 在模拟器中进行了一些更改 我现在的问题是终端说我:“(com.apple.videosubscriptionsd):服务只运行了0秒。将重生推迟10秒。”

以上是关于布尔值的 Flutter Unknown 键:EnableTransactions的主要内容,如果未能解决你的问题,请参考以下文章

强制转换为布尔值是检查是不是存在与键匹配的 unordered_map 值的有效方法吗? C++

Karma , 伊斯坦布尔 - 代码覆盖率报告 Unknown% (0/0)

如何使布尔值确定 JavaScript 对象的值的顺序?

Flutter:[cloud_firestore/unknown] NoSuchMethodError:null 上的无效成员:'includeMetadataChanges'(Flutter Web

Flutter: X Android license status unknown

修复了 Android 许可证状态 Unknown.flutter 安装 [关闭]