Search code examples
iosobjective-cxcodeios8xcode6

Xcode 6 - Unknown type name 'NSString' / Expected identifier or '('


When I am running my project in Xcode 6, I am having many weird errors.

Parse Issue - Unknown type name 'NSString'
Format argument not an NSString
Could not build module Foundation
Could not build module QuartzCore

All of these errors occur in Apple's header files such as: CAMediaTiming.h, NSObjCRuntime.h,NSZone.h,NSObject.h, CALayer.h, etc.

Unfortunately, the answers in here: ios - Parse Issues in NSObjCRuntime, NSZone, and NSObject did not work for me.

How do you recommend I fix these errors?


Solution

  • The problem was that I had some .c files in my project, apparently Xcode 6 doesn't like .c files.

    I changed the extension of the .c files to .m and Xcode 6 is happy again!