I have a IOS project I need to update. It works fine in Xcode 8, but after upgrading to Xcode 9 or 10 (tried both) it won't compile anymore.
I get "Expected unqualified-id" parse error in the file " common.h
" wich is included from GLKit.h
.
The line with the error ist the following:
} /* extern "C" */
I think perhaps a } to much, however I can't even edit this file as it belongs to apples librarys and is read only.
If I go back to Xcode 8 it immediately works again.
I found out what happened. I had a
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
somewhere. This messed up with something in the common.h
Defining this after the include of the common.h solved the problem.
I dont know why this only happens on XCode 9+
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.