ios - SpriteKit NSTimeInterval 重命名
问题描述
我正在尝试在我的项目中使用 SpriteKit,但在安装并打开项目后,我收到 28 个错误。我试图将“NSTimeInterval”重命名为“TimeInterval”,但没有成功。我正在使用 Xcode 9.3
这是我的 Podfile:
platform :ios, '9.0'
target 'Aaa' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Aaa
pod 'SpriteKit-Spring'
end
我收到这些错误(27 个相同 - 'NSTimeInterval' 已重命名为 'TimeInterval'): 错误列表截图
解决方案: 在 Podfile 中有这一行:
pod 'SpriteKit-Spring', :git => 'https://github.com/ataugeron/SpriteKit-Spring/'
解决方案
SpriteKit-Spring 还没有更新到 Swift 4,至少没有更新到发布的 pod。有关解决方法,请参阅 https://github.com/ataugeron/SpriteKit-Spring/issues/12。
推荐阅读
- javascript - 使用 jQuery 使用表单输入数据更新 span 元素但它没有更新
- javascript - 在 lit-html/lit-element 中添加/编辑表单的最佳实践
- javascript - 模式在 Firebase 登录完成之前关闭并重新加载页面
- json - 反序列化 JSON 并将叶子数据放入 Rc 结构的最佳方法是什么?
- primeng - Primeng 表:在 ngOnInit 中向表中添加行
- java - 在 Java 类之间传递变量状态
- c++ - 项目包含路径中的“.cpp”文件将不会被项目看到
- windows - 如何通过 PowerShell 为 Windows 10 上的当前用户设置 Windows 开始菜单布局
- laravel - lumen 6:如何在 lumen 上重构响应分页的数据?
- c# - 如何在 Firebase 分析中记录用户名?