1
votes

I am working on Xcode 5.0,i copied JSON library files in to my project which are built with non arc, so i added complier flag "fno-objc-arc"for those JSON library compiler sources. After doing this i am getting apple LLVM 5.o error.

clang: error: no such file or directory: 'fno-objc-arc'
Command    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Pleas help me to resolve this error.

2
Try add "-fno-objc-arc" insteadJim75
Please be careful if you are copy/pasting the '-fno-objc-arc' flag. Dash character may be misleading if you are copying from another document.Hakan Bilgin

2 Answers

6
votes

If that's a command line option, and it is, you need to prefix it with a hyphen, such as with:

clang -fno-objc-arc ...

If you just use fno-objc-arc, it's going to think it's a file name you want compiled, and complain bitterly that no such file exists, as indeed it seems to be doing with the no such file or directory: 'fno-objc-arc' error.

0
votes

Please note that there is no new line character after -fno-objc-arc. You can be assured by entering -fno-objc-arc and click somewhere around instead of hitting enter/return key.

This got my problem fixed!