简体   繁体   English

Xcode 6:添加现有的类会产生编译错误

[英]Xcode 6: Adding Existing Classes Produce Compilation Error

I've just installed Xcode 6 and I've found that .. whenever I try to add an existing file to the project it produce a compilation error in the basic UIKit classes such as UITableView and NSObject .. 我刚刚安装了Xcode 6 ,我发现..每当我尝试将现有文件添加到项目中时,它都会在UITableViewNSObject等基本UIKit类中产生编译错误。

在此处输入图片说明

I have no idea why this is happening! 我不知道为什么会这样!

根据Shai和iDev的回答,我发现在xcode 6中没有默认的PCH文件..因此,uikit和Foundation没有默认的导入..应该手动添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM