Invalid token at the beginning of preprocessor expression in CoreFoundation

I had the following problem in the last 2 days. Whenever I try to create 1 specific application, I keep getting errors in some CoreFoundation classes. To be specific in classes where one of the TARGET_OS_IPHONE or TARGET_OS_EMBEDDED macros is used. I do not know the source of this problem, but would be very happy to receive some help ...

ErrorsPreprocessor

I am using the LLVM compiler, Xcode 4.6.2.

Is this a well-known problem because I could not find anything while searching?

EDIT: This happened after I cleared the received data.

RESOLVED: For reasons unknown to me, the error continued to appear. By creating a new clean project and adding all the files to it, all this compiled without problems! Very, very, very strange ...

FURTHER INFORMATION: This has something to do with the fact that the folder was a clone of the repository, and I guessed that it messed up something. After I created a new clean project, and everything worked out fine, I put it in this folder and it started showing these unpleasant errors again. It has something to do with the folder in it ...

+4
source share

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


All Articles