[cfe-dev] Error in ProcessPCH (xcodebuild)

在哪 via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 2 00:52:52 PDT 2015

Hi, all
        I find that the "xcodebuild" can work if I turn off the "Precompile Prefix Header" in "Build Settings". Are there other ways to fix it? And why clang change 
my option?


To: cfe-dev at lists.llvm.org
Date: Wed, 2 Sep 2015 07:04:30 +0000
Subject: [cfe-dev] Error in ProcessPCH (xcodebuild)
From: cfe-dev at lists.llvm.org

Hi, all
     When I use "xcodebuild" to build my iOS project, the process stopped in compling "PrefixHeader.pch". I use the following command:

    =>    xcodebuild -project xxx -scheme yyy build OTHER_CFLAGS="-mllvm -xt-obf"

     the error messages are:
   =>   clang (LLVM option parsing): Unknown command line argument '-xt-obf-header'.  Try: 'clang (LLVM option parsing) -help'
           clang (LLVM option parsing): Did you mean '-xt-obf'?

     That means: The "clang" compiler change my "xt-obf" to "xt-obf-header" in compling "PrefixHeader.pch".  
     I want to kown the reseaon and the way to fix it. Can anyone help me ? Thanks.    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150902/453d929c/attachment.html>

More information about the cfe-dev mailing list