Xcode: “Reference to NSString is ambiguous”

自作多情 提交于 2019-12-12 03:18:22

问题


I don't understand how such a thing can happen: I have created an Xcode project (Xcode 6) and I imported some files from a previous project (a Storyboard, the Images.xcassets file and some .h and .m files)

Now when I import some of those headers in my code, each line using a NSString reports the error "Reference to NSString is ambiguous".

Is this a known issue, how to solve that?


回答1:


Reason: Engineering Index is broken, Rebuild index

Workaround: Xcode -> Window -> Organizer -> select the project, find Derived Data, click on the back of Delete, and then restart XCode can.



来源:https://stackoverflow.com/questions/32498193/xcode-reference-to-nsstring-is-ambiguous

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