我最近将包含Realm Swift的应用程序升级到Swift3。我还将Realm pod升级到了支持Swift 3的最新版本。

使用Swift 2.2一切都很好
我可以很好地构建应用程序。

当我在模拟器中运行应用程序时,执行第一个Realm命令并出现以下调试错误时,它会崩溃

2016-10-31 21:53:59.652525 # MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.654172 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.655775 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.657456 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.661452 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.667299 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.671652 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.675755 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.680503 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.687101 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.691908 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-10-31 21:53:59.703852 MyAppName[3772:306703] [] nw_host_stats_add_src recv too small, received 24,

关于如何进行故障排除或解决此问题的任何想法?

最佳答案

使用Crashlytics遇到了同样的事情。清除“派生数据”后,一切正常。

要获取派生数据:

  • Xcode>首选项...
  • 位置(选项卡)
  • (双精度)单击“派生数据”行上的圆圈(其中有向右箭头)。
  • 显示了
  • DerivedData。删除其内容。
  • 关于ios - iOS 3模拟器使Swift 3 Realm崩溃,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40351366/

    10-14 20:45
    查看更多