Xcode 5 upgrade - Now nsobject.h has errors duplicate interface definition for class 'NSObject'

巧了我就是萌 提交于 2020-01-21 12:17:07

问题


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'

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

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.

Thanks!

Adam


回答1:


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.



来源:https://stackoverflow.com/questions/19245741/xcode-5-upgrade-now-nsobject-h-has-errors-duplicate-interface-definition-for-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!