Xcode 4: Unknown type name "NSUInteger"; Did you mean NSUInteger?

I am stuck in my project. I defined a property with type NSUInteger, for example:

@property NSUInteger maxDepth 

It doesn't matter if this property is created (assign) or not, Xcode keeps asking me

 Unknown type name 'NSUInteger'; did you mean 'NSUInteger'? 

I cannot build, and it does not matter where and how I define the NSUInteger property, I just keep getting this error. My project uses the LLVM 3.0 compiler and ARC, so switching to GCC4.2 is not an option for me.

Thanks in advance!

+6
source share
2 answers

It seems that my project prefix has been corrupted. I fixed this by noticing that the same errors were in the new project that imported my current code. Thanks for the help anyway. I will keep an eye on this prefix file ...

0
source

I just tried it with a new project.

There was some problem with Xcode 4.2.

I tried changing the compiler to GCC4.2 and then changing it to LLVM 3.0, after which it was highlighted in bold (I believe there is still an error in order to configure it correctly). After that, I clean up the project and rebuild, and it worked for me.

0
source

Source: https://habr.com/ru/post/901597/


All Articles