Issue 运行 Scene Kit 演示 WWDC2013 代码

Issue running Scene Kit's presentation WWDC2013 code

我正在尝试 运行 来自 WWDC2013 Apple 的 Scene Kit 演示文稿的 source code。我遇到错误,但不确定如何解决。

这是我收到的错误:

ASCSlideNodeDelegate.m:238:94: 属性 'view' ('NSView * _Nonnull') 的类型与访问器 'view' 的类型不匹配('SCNView *')

如有任何帮助,我们将不胜感激!

需要更改 ASCPresentationViewController 中 SCNView 的定义以匹配新的 SDK header。

在 ASCPresentationViewController.h 中,从 -view 超类覆盖的方法声明切换到 header 中的 属性,并为此指定 @dynamic 属性在 ASCPresentationViewController.m.

@property (strong) SCNView *view;
//- (SCNView *)view;

@dynamic view;
//- (SCNView *)view {
//    return (SCNView *)[super view];
//}

您可以在 Updating SceneKit WWDC 2013 slides for Xcode 7(我的 Wordpress 博客)中找到一些其他需要更新的差异。