问题
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