简体   繁体   中英

Apple LLVM 5.1 error

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

  • Enable ARC -> -fobjc-arc
  • Disable ARC -> -fno-objc-arc

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM