ios - 为 Xcode 安装 pod 时终端出错

标签 ios xcode terminal cocoapods

我正在尝试在我的 Xcode 项目上安装一个 pod。
这是我的 pod 文件:

platform :ios, '8.0'
use_frameworks!

target 'aa' do
    pod 'Canvas'
end

我在尝试安装 pod 时在终端中遇到这些错误 The errors

谢谢!


编辑: 没关系,我让它工作并安装了它 我在我的 Podfile 中添加了这个。 (cc 是另一个项目)。 项目'/Users/ashotgharibyan/Desktop/cc/cc.xcodeproj'

但现在我有 this warning .
有帮助吗?有没有办法解决它,或者我不应该担心它。

最佳答案

正如 Xcode 所说的那样简单,您忘记在 -(void)awakeFromNib 方法中编写 [super awakeFromNib] 方法。

所以,你的方法应该是

-(void)swakeFromNib{
[super awakeFromNib]
//Now write Your Stuff here
}

您可以在此链接上查看更多详细信息 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.

关于ios - 为 Xcode 安装 pod 时终端出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43533182/

相关文章:

ios - 在 xcode 上运行 ionic 跨平台项目时出现错误

swift - 动画后如何去除SKTexure

ios - 读取并更新到主应用程序包中的 JSON 文件

git 尝试在已删除的推送上写入文件

vim - Vim和lua有问题吗?

linux - 如何以 dasusr 身份登录?

ios - 如何将圆形蒙版应用到 UIImageView

ios - 身份验证登录问题 RESTful iOS

iphone - 为什么 AVAudioPlayer stop 方法在切换 View 时不起作用

ios - 滚动时 textView 在 vi​​ewController 中的位置