0

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?

Gannicus
  • 399
  • 1
  • 3
  • 18

1 Answers1

0

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.

Colin
  • 46
  • 3
  • That solved the issue for about a minute but it appeared again. Same thing happen when I clean the project. – Gannicus Sep 10 '15 at 11:31
  • 1. Clean the project 2. Deleting everything inside '~/Library/Developer/Xcode/DerivedData/ModuleCache/' (if button inside the organizer window did not work) 3. Clean once more 4. Build project – Colin Sep 10 '15 at 11:37