2012-05-16 18 views
4

我已經收到了我的iPhone項目。我在幾個月前跑過svn update來處理版本庫。此後的許多變化使得從舊點恢復幾乎不可能。clang:錯誤:沒有這樣的文件或目錄:'/Users/waterskiingmithrill/Development/iPhone/Event/Event_Prefix.pch'

當我嘗試建立項目現在我得到:

ProcessPCH /Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/PrecompiledHeaders/Event_Prefix-brpgiiwwokyynuheloumlvxlmurs/Event_Prefix.pch.pth Event_Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
cd /Users/waterskiingmithrill/Development/iPhone/Event 
setenv LANG en_US.US-ASCII 
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -fvisibility=hidden -Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -iquote "/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/Hat Fair-generated-files.hmap" "-I/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/Hat Fair-own-target-headers.hmap" "-I/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/Hat Fair-all-target-headers.hmap" -iquote "/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/Hat Fair-project-headers.hmap" -I/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/libxml2 -I/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/DerivedSources/i386 -I/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/Event.build/Debug-iphonesimulator/HatFair.build/DerivedSources -F/Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Products/Debug-iphonesimulator -DNS_BLOCK_ASSERTIONS=1 --serialize-diagnostics /Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/PrecompiledHeaders/Event_Prefix-brpgiiwwokyynuheloumlvxlmurs/Event_Prefix.pch.dia -c /Users/waterskiingmithrill/Development/iPhone/Event/Event_Prefix.pch -o /Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/PrecompiledHeaders/Event_Prefix-brpgiiwwokyynuheloumlvxlmurs/Event_Prefix.pch.pth -MMD -MT dependencies -MF /Users/waterskiingmithrill/Library/Developer/Xcode/DerivedData/Event-cqyicuekijryjpbuuucigvdrxrdc/Build/Intermediates/PrecompiledHeaders/Event_Prefix-brpgiiwwokyynuheloumlvxlmurs/Event_Prefix.pch.d 

clang: error: no such file or directory: '/Users/waterskiingmithrill/Development/iPhone/Event/Event_Prefix.pch' 
clang: error: no input files 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

而且我不知道爲什麼Event_Prefix.pch是不是有被叮噹響。 (我什至不知道鏗鏘是什麼)任何幫助,如何調試的建議,如何解決提示,非常感謝。

回答

7

Clang是編譯器。確保你的項目文件中有一個Event_Prefix.pch文件。

+0

謝謝 - 這就是它所說的我猜:S 如果我以爲打開文件夾中的文件,我會看到一個偉大的大紅色Event_Prefix.pch那裏顯示它是失蹤。 –

+1

@DrummerB它不應該被添加到目標,該文件只需要存在於該路徑 – hooleyhoop

+0

哦,對不起,我修正了這個問題。 – DrummerB

1

就我而言,我的搜索路徑不是遞歸的。

2

我只是在測試版本上。似乎測試目標沒有更新命名更改。

+0

你是如何解決這個問題的? –

+1

嗨,修復起來很簡單。只要看看錯誤。轉到錯誤中列出的路徑。它引用的文件不在那裏。在我的情況下,原因是重命名沒有結轉到測試目標。因此,遵循該測試目標所在的路徑並確保名稱與所尋找的名稱相匹配,從而解決問題。希望有所幫助。對不起,簡潔的答案。 – smileBot

0

我得到這個錯誤,當重命名該項目,還改變文件夾名稱。

在Xcode中,您可以通過選擇組/文件夾引用來輕鬆設置新路徑,打開Utilities邊欄(菜單欄:View > Utilities > Show File Inspector),然後單擊「標識和類型」部分中的小文件夾圖標。

但是:路徑也設置在項目配置的深處。 選擇項目,選擇「生成設置」,在「目標」下左側選擇你的應用程序,並糾正的路徑:

  • 包裝> Info.plist文件
  • 蘋果LLVM 5.1 - 語言>前綴頭
相關問題