SpriteKit NSTimeInterval重命名

时间:2018-07-02 11:30:12

标签: ios swift xcode sprite-kit cocoapods

我试图在项目中使用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'): Error list screenshot

解决方案: 在Podfile中输入以下内容:

pod 'SpriteKit-Spring', :git => 'https://github.com/ataugeron/SpriteKit-Spring/'

1 个答案:

答案 0 :(得分:0)

SpriteKit-Spring尚未更新为Swift 4,至少不是已发布的pod。解决方法,请参见https://github.com/ataugeron/SpriteKit-Spring/issues/12