A bunch of weird bugs: 1?? Could not build module ' XXXXXXXX '
2?? error:expected identifier or ' ('
3?? EDIT Setting precompile Prefix header = No results in a bunch of syntax errors instead, in stuff like NSObject.h (and othe R 4?? Foundation Framework Header)
5?? EDIT User Cy-4ah figured it out:there needs to be #ifdef __OBJC__ around the whole pch file.
6?? Error:could not build module ' Foundation ', and things in Foundation.h not being found.
Most of the causes of the above errors are:
You add a. c/.h/.m file or other copied. c/.h/.m file that causes PCH file errors
(Delete the file and add it again.) What happened, where was the root of the error? )
Like these questions, there is no right solution, here I can only guide you to find the root of the error ......
We revolve around: #import preprocessing directives: #ifdef __objc__ #endif to find the source of the error
The PCH is included as a prefix to the C and OBJC files. So the file you added certainly won't work
We usually try not to copy other people's code files, it is easy to let the program crash. The copy should also have a degree, do not copy the entire file.
Try not to copy the file .....
Could not build module ' XXXXXXXX ' or error:expected identifier or ' ('. A bunch of strange mistakes ———— the root of the error