构建时间 Canvas Pod xCode 问题 |缺少 [super awakeFromNib] 调用 ||来自 CSAnimationView.m 个文件
Buildtime Canvas Pod xCode issue | missing a [super awakeFromNib] call || from CSAnimationView.m file
我刚刚添加了 canvas pod(通过 cocoapods),我可以很好地看到我工作区中的文件,并且我能够 "import Canvas" 进入我的 ViewController.swift。但是我收到一个语义构建时间错误,文件 CSAnimationView.m 可能缺少方法 [super awakeFromNib][errorscreenshot]1
/*
* This file is part of the Canvas package.
* (c) Canvas <usecanvas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "CSAnimationView.h" @implementation CSAnimationView
- (void)awakeFromNib {
if (self.type && self.duration && ! self.pauseAnimationOnAwake) {[self startCanvasAnimation];
}
}
- (void)startCanvasAnimation {
Class <CSAnimation> class = [CSAnimationclassForAnimationType:self.type];
[class performAnimationOnView:self duration:self.durationdelay:self.delay];
[super startCanvasAnimation];
}
@end
开始于:
1) 您尝试添加的库,"Canvas",已有 3 年多未更新,最新版本为 0.1.2,请参见此处:https://github.com/CanvasPod/Canvas/releases
2) Xcode >= 8 需要[super awakeFromNib],请阅读这里:
此处:
You must call the super implementation of awakeFromNib to give parent
classes the opportunity to perform any additional initialization they
require. Although the default implementation of this method does
nothing, many UIKit classes provide non-empty implementations. You may
call the super implementation at any point during your own
awakeFromNib method.
构建它的唯一方法是手动添加分支 master 并自行修复问题
我刚刚添加了 canvas pod(通过 cocoapods),我可以很好地看到我工作区中的文件,并且我能够 "import Canvas" 进入我的 ViewController.swift。但是我收到一个语义构建时间错误,文件 CSAnimationView.m 可能缺少方法 [super awakeFromNib][errorscreenshot]1
/*
* This file is part of the Canvas package.
* (c) Canvas <usecanvas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "CSAnimationView.h" @implementation CSAnimationView
- (void)awakeFromNib {
if (self.type && self.duration && ! self.pauseAnimationOnAwake) {[self startCanvasAnimation];
}
}
- (void)startCanvasAnimation {
Class <CSAnimation> class = [CSAnimationclassForAnimationType:self.type];
[class performAnimationOnView:self duration:self.durationdelay:self.delay];
[super startCanvasAnimation];
}
@end
开始于:
1) 您尝试添加的库,"Canvas",已有 3 年多未更新,最新版本为 0.1.2,请参见此处:https://github.com/CanvasPod/Canvas/releases
2) Xcode >= 8 需要[super awakeFromNib],请阅读这里:
You must call the super implementation of awakeFromNib to give parent classes the opportunity to perform any additional initialization they require. Although the default implementation of this method does nothing, many UIKit classes provide non-empty implementations. You may call the super implementation at any point during your own awakeFromNib method.
构建它的唯一方法是手动添加分支 master 并自行修复问题