重命名为XCode 5项目,在File Inspector中重置文件位置,清理引用,无法清理或编译

时间:2014-07-09 15:28:48

标签: xcode ios7 compiler-errors xcode5 cs193p

我正在通过斯坦福大学的iOS CS193p课程,我已经完成了作业6.部分作业涉及将项目从 TopPlaces 重命名为 TopRegions 。我已经完成了,我已经清理了文件检查器中的位置参考。除导航目录外,Project导航器中的所有文件都不是红色。

Project Navigator

当我尝试清理或编译项目时,我收到以下编译器错误:

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

我在File Inspector中检查了ImageVC类的标题和实现,它们显示了我想要它们的位置,但某处有一个我找不到的旧目录的引用。我花了几个小时尝试了我在这里找到的不同的解决方案,但它们似乎都不适合我。我从未想过重命名文件将是我在iOS中学到的最艰难的事情。非常感谢任何帮助。以下是错误的详细信息:

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

0 个答案:

没有答案