重命名XCode 5.1项目后编译器错误

时间:2014-07-09 18:29:51

标签: xcode ios7 xcode5 xcode5.1

我在XCode中将项目文件从 TopPlaces 重命名为 TopRegions 。重命名并清理文件位置和引用后,我可以清理" XCode中的文件没有任何问题,但是当我去编译它时,我得到以下错误。

clang: error: no such file or directory: '/Users/iOSPadawan/Documents/Developer/Stanford iOS 7/TopRegions/TopPlaces/ImageVC.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

我尝试删除错误中引用的视图控制器,并从原始(预重命名)项目中重新导入它,但这并不能解决错误。

我对" Build Settings"进行了文本搜索。和#34;建立阶段" TopPlaces的项目,但它没有任何结果。但是,在“构建设置”中的“编译源”下,我看到引用(不会在文本搜索中显示)到旧项目名称。我已经尝试删除它们并添加实现文件,但我仍然遇到同样的错误。

我知道我错过了一些真正令人讨厌的东西,但我不知道是什么?有什么建议?这是编译器错误的完整列表:

CompileC /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/Objects-normal/i386/ImageVC.o TopPlaces/ImageVC.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Users/iOSPadawan/Documents/Developer/Stanford iOS 7/TopRegions"
    export LANG=en_US.US-ASCII
    export 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 -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -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 -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=7.0 -iquote /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/TopRegions-generated-files.hmap -I/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/TopRegions-own-target-headers.hmap -I/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/TopRegions-all-target-headers.hmap -iquote /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/TopRegions-project-headers.hmap -I/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/DerivedSources/i386 -I/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/DerivedSources -F/Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Products/Debug-iphonesimulator -include /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/PrecompiledHeaders/TopRegions-Prefix-gvxkjoatgnwponegpmitcljtrjli/TopRegions-Prefix.pch -MMD -MT dependencies -MF /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/Objects-normal/i386/ImageVC.d --serialize-diagnostics /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/Objects-normal/i386/ImageVC.dia -c /Users/iOSPadawan/Documents/Developer/Stanford\ iOS\ 7/TopRegions/TopPlaces/ImageVC.m -o /Users/iOSPadawan/Library/Developer/Xcode/DerivedData/TopRegions-euvbevtdsgmfzsbsgnulbhzytzij/Build/Intermediates/TopRegions.build/Debug-iphonesimulator/TopRegions.build/Objects-normal/i386/ImageVC.o

enter image description here

1 个答案:

答案 0 :(得分:0)

由于我不明白的原因,尽管我在文件检查器中更新了它们的位置,但编译器并没有更新新项目名称的来源。我能够通过在项目导航器中修改引用(而不是文件)并将它们从Finder中拖回来解决问题。

“经验只是男人给自己犯错的名字。” - 奥斯卡王尔德