The error is actually pretty clear, isn't it? Xcode calls clang
with the option -Wno-pragma
and clang
complains that it does not know any such option. Since Xcode is not setting this option by default, you must have manually added this option in the build settings. If you don't really need, just disable/remove it.
What is a bit strange is that clang
actually does know this option, at least on my system (just like clang
also knows -Wno-unknown-pragmas
). So you may want to go to the build log and look up the exact clang
command line call that Xcode performs. In the build log, you can select the failed build and expand the failed call, which will you give the exact command line call that Xcode performed in attempt to build a source file.