When i try to open an old project on Xcode Version 5.1.1, proprecompiler gives the following error
clang: error: unknown argument: '-fobjc' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
by the way some classes are compiled with -fobjc -arc
flag.
Do you have any idea how to fix this?
Looks like you're using the wrong flag. You should be using -fobjc-arc
.
Check your compiler flag again , its seems like you are using -fobjc
instead of -fobjc-arc
.
Use
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.