苹果LLVM编译器错误4.1

所以,我碰巧移动了一些文件夹,突然之间,我的项目发现,只是喜欢,而不是工作会很酷。 有人可以告诉我如何解决这个错误? (编译irl的iPhone时出错。)

短错误:

clang: error: no such file or directory: '/Users/OscarApeland/Downloads/LNG Converter 2/LNG Converter/LNG Converter/LNG Converter-Prefix.pch' clang: error: no input files Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

完整的错误:

 ProcessPCH "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/PrecompiledHeaders/LNG Converter-Prefix-chblhzzekvnqprcbihkzfysqbmqa/LNG Converter-Prefix.pch.pth" "LNG Converter/LNG Converter-Prefix.pch" normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler cd "/Users/OscarApeland/Downloads/LNG Converter 2/LNG Converter" setenv LANG en_US.US-ASCII setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7s -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=5.1 -iquote "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/LNG-generated-files.hmap" "-I/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/LNG-own-target-headers.hmap" "-I/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/LNG-all-target-headers.hmap" -iquote "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/LNG-project-headers.hmap" -I/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/DerivedSources/armv7s" "-I/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/LNG Converter.build/Debug-iphoneos/LNG Converter.build/DerivedSources" -F/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Products/Debug-iphoneos --serialize-diagnostics "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/PrecompiledHeaders/LNG Converter-Prefix-chblhzzekvnqprcbihkzfysqbmqa/LNG Converter-Prefix.pch.dia" -c "/Users/OscarApeland/Downloads/LNG Converter 2/LNG Converter/LNG Converter/LNG Converter-Prefix.pch" -o "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/PrecompiledHeaders/LNG Converter-Prefix-chblhzzekvnqprcbihkzfysqbmqa/LNG Converter-Prefix.pch.pth" -MMD -MT dependencies -MF "/Users/OscarApeland/Library/Developer/Xcode/DerivedData/LNG_Converter-fhuumyzhzihyzkcrahggbbgzeijr/Build/Intermediates/PrecompiledHeaders/LNG Converter-Prefix-chblhzzekvnqprcbihkzfysqbmqa/LNG Converter-Prefix.pch.d" 

和一个截图 在这里输入图像说明

您需要编辑您的目标的构build设置,并更新“前缀头”来修复其path。

在这里输入图像说明

我有这个错误:缺lessMyProject-Prefix.pch,也缺lessCordovaLib_Prefix.pch,果然,我可以validation他们不是他们应该在哪里。

这是我想到的:

  • 我把我的项目的所有文件从一个目录复制到另一个(事实)
  • Finder以其智慧决定不复制以.p.pch结尾的文件

有道理的理由是,为了解决这个问题,我只需要将文件从原始位置复制到应该在的目录中。