Xcode 5升级 - 现在nsobject.h有错误的重复接口定义'NSObject'类 [英] Xcode 5 upgrade - Now nsobject.h has errors duplicate interface definition for class 'NSObject'

查看:199
本文介绍了Xcode 5升级 - 现在nsobject.h有错误的重复接口定义'NSObject'类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨晚升级到了X-Code 5。现在,当我继续开发我的一个iOS应用程序(在之前的Xcode版本上编译得很好)时,我遇到了一个我似乎无法解决的错误。

I upgraded to X-Code 5 last night. Now when I've gone to continue development on one of my iOS apps (which compiled fine on the previous Xcode version) I've hit an error I don't seem to be able to solve.

当我构建应用程序时,我收到编译错误:

When I build the app I get a compile error:

duplicate interface definition for class 'NSObject'

这似乎实际上发生在两个Foundation中的nsobject.h中。框架和UIKit.Framework。

This appears to actually occur in nsobject.h in both Foundation.Framework and UIKit.Framework.

我不确定为什么会这样。我删除并重新添加了两个框架,执行了几次清理,尝试在几个SDK等下构建它。没有一个工作。

I'm not sure why this is happening. I've removed and re-added both frameworks, performed several cleans, tried building it under several SDK's etc. None of which worked.

任何提示/想法都会很多赞赏。

Any tips/Ideas would be much appreciated.

谢谢!

Adam

推荐答案

确认您在构建设置下的框架搜索路径中没有引用任何旧框架。删除那些旧的并更新过时的位置。

verify that you do not have any old frameworks referenced in you Framework Search Paths under Build Settings. Remove those being old and update outdated locations.

添加了一个帮助屏幕。

Added a screenie for help.

这篇关于Xcode 5升级 - 现在nsobject.h有错误的重复接口定义'NSObject'类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆