Xcode 5 upgrade - Now nsobject.h has errors duplic

2019-02-25 05: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

标签: ios xcode xcode5
1条回答
祖国的老花朵
2楼-- · 2019-02-25 06:07

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. screenie

查看更多
登录 后发表回答