[cfe-dev] Error in ProcessPCH (xcodebuild)

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






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.    

Maxs
====================================================================================================
     The compiling command's details are as follows:

ProcessPCH 
Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.pch
 Meizi/PrefixHeader.pch normal armv7 objective-c 
com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/netease/Desktop/SRC_github/Meizi
    export LANG=en_US.US-ASCII
   
 export 
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/netease/Downloads/Users/ryuichis/Projects/L/oclint-08/build/oclint-0.8.1/bin:/Users/netease/Desktop/llvm-build/bin:/opt/iOSOpenDev/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
   
 /Users/netease/Desktop/llvm-build-debug/bin/clang -x objective-c-header
 -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack 
-fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules 
-fmodules-cache-path=/Users/netease/Desktop/SRC_github/Meizi/ModuleCache
 -fmodules-prune-interval=86400 -fmodules-prune-after=345600 
-fbuild-session-file=/Users/netease/Desktop/SRC_github/Meizi/ModuleCache/Session.modulevalidation
 -fmodules-validate-once-per-build-session 
-Wnon-modular-include-in-framework-module 
-Werror=non-modular-include-in-framework-module -Wno-trigraphs 
-fpascal-strings -Os -Wno-missing-field-initializers 
-Wno-missing-prototypes -Werror=return-type -Wunreachable-code 
-Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage 
-Werror=objc-root-class -Wno-receiver-is-weak 
-Wno-arc-repeated-use-of-weak -Wduplicate-method-match 
-Wno-missing-braces -Wparentheses -Wswitch -Wunused-function 
-Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value
 -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas 
-Wno-shadow -Wno-four-char-constants -Wno-conversion 
-Wconstant-conversion -Wint-conversion -Wbool-conversion 
-Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof 
-Wno-selector -Wno-strict-selector-match -Wundeclared-selector 
-Wno-deprecated-implementations -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 
-DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk
 -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g 
-fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=8.0 
-iquote 
/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-generated-files.hmap
 
-I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-own-target-headers.hmap
 
-I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-all-target-headers.hmap
 -iquote 
/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-project-headers.hmap
 
-I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/BuildProductsPath/Release-iphoneos/include
 
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/AFDownloadRequestOperation
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/AFNetworking
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/DACircularProgress
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/HMSegmentedControl
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MBProgressHUD
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MJExtension
 -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MJRefresh
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MWPhotoBrowser
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/NHBalancedFlowLayout
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/SDWebImage
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/SVProgressHUD
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/UIActivityIndicator-for-SDWebImage
 
-I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/YTKNetwork
 
-I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/DerivedSources/armv7
 
-I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/DerivedSources
 
-F/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/BuildProductsPath/Release-iphoneos
 -mllvm -xt-obf-header -MD -MT dependencies -MF 
/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.d
 -c /Users/netease/Desktop/SRC_github/Meizi/Meizi/PrefixHeader.pch -o 
/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.pch
 --serialize-diagnostics 
/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.dia
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'?
Command /Users/netease/Desktop/llvm-build-debug/bin/clang failed with exit code 1
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150902/68773fff/attachment.html>


More information about the cfe-dev mailing list