Xcode在错误的位置寻找CFNetwork框架

时间:2011-09-11 21:48:10

标签: ios xcode frameworks asihttprequest

如果这是我正在做的事情,我不会感到惊讶......这是一个iOS目标项目。

  • MacOS:10.7 Lion
  • Xcode:4.1
  • 目标:iPhone 4.3

我在一个不同的项目中使用了ASI的ASIHTTPRequest附加框架,它运行良好。

我已将它添加到我正在处理的当前项目中,现在Xcode正在项目目录中寻找CFNetwork框架而不是SDK位置。我没有添加任何搜索位置,并且已经验证CFNetwork框架位置设置为“相对于SDK”并且正在查看“系统/库/框架”目录。

正如您在错误消息的底部看到的那样,它正在查找框架的错误文件夹 - 它正在项目文件夹中查找。

如果您对我做错了什么有任何想法,请告诉我。

谢谢!

错误讯息:

  

CompileC /Users/mooner/Library/Developer/Xcode/DerivedData/MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu/Build/Intermediates/MoonCo_TiltFinder.build/Debug-iphonesimulator/MoonCo_TiltFinder.build/Objects-normal/i386/ASIDownloadCache.o ASIDownloadCache.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler       cd /Volumes/One.One/Development/Cam-MoonCo_TabBar/MoonCo_CustomTabBar       setenv LANG en_US.US-ASCII       setenv PATH“/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”       /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length = 0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category = id -fdiagnostics -parseable-fixits -std = gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wharentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -DDEBUG -isysroot / Developer / Platforms / iPhoneSimulator .platform / Developer / SDKs / iPhoneSimulator4.3.sdk -fexceptions -fasm-blocks -mmacosx-version-min = 10.6 -gdwarf-2 -fobjc-abi-version = 2 -fobjc-legacy-dispatch“-DIBOutlet = attribute ((iboutlet))“” - DIBOutletCollection(ClassName)= attribute ((iboutletcollection(ClassName)))“” - DIBAction = void)属性 ((ibaction)“-D__IPHONE_OS_VERSION_MIN_REQUIRED = 40300 -iquote /Users/mooner/Library/Developer/Xcode/DerivedData/MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu/Build/Intermediates/MoonCo_TiltFinder.build/Debug-iphonesimulator/MoonCo_TiltFinder.build/ MoonCo_TiltFinder-generated-files.hmap -I / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Intermediates / MoonCo_TiltFinder.build / Debug-iphonesimulator / MoonCo_TiltFinder.build / MoonCo_TiltFinder-own-target-headers。 hmap -I / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Intermediates / MoonCo_TiltFinder.build / Debug-iphonesimulator / MoonCo_TiltFinder.build / MoonCo_TiltFinder-all-target-headers.hmap -iquote / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Intermediates / MoonCo_TiltFinder.build / Debug-iphonesimulator / MoonCo_TiltFinder.build / MoonCo_TiltFinder-project-headers.hmap -I / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Products / Debug-iphonesimulator / include -I / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Intermediates / Mo onCo_TiltFinder.build/Debug-iphonesimulator/MoonCo_TiltFinder.build/DerivedSources/i386 -I / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Intermediates / MoonCo_TiltFinder.build / Debug-iphonesimulator / MoonCo_TiltFinder.build / DerivedSources -F / Users / mooner / Library / Developer / Xcode / DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu / Build / Products / Debug-iphonesimulator -F / Volumes / One.One / Development / Cam-MoonCo_TabBar / MoonCo_CustomTabBar -include / Users / mooner /图书馆/开发商/ Xcode中/ DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu /编译/ PrecompiledHeaders / MoonCo_CustomTabBar前缀ezvknrzjsqbjxdfzxcnzjkisdtlw / MoonCo_CustomTabBar-Prefix.pch -MMD -MT依赖-MF /用户/ mooner /库/开发商/ Xcode中/ DerivedData / MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu /Build/Intermediates/MoonCo_TiltFinder.build/Debug-iphonesimulator/MoonCo_TiltFinder.build/Objects-normal/i386/ASIDownloadCache.d -c /Volumes/One.One/Development/C am-MoonCo_TabBar / MoonCo_CustomTabBar / ASIDownloadCache.m -o /Users/mooner/Library/Developer/Xcode/DerivedData/MoonCo_TiltFinder-gzpflywfciaabtachdctgqaarhmu/Build/Intermediates/MoonCo_TiltFinder.build/Debug-iphonesimulator/MoonCo_TiltFinder.build/Objects-normal/i386/ ASIDownloadCache.o

     

致命错误:无法打开文件'/Volumes/One.One/Development/Cam-MoonCo_TabBar/MoonCo_CustomTabBar/CFNetwork.framework/Headers/CFHTTPMessage.h':

1 个答案:

答案 0 :(得分:0)

有同样的问题。通过 Command Shift K 清理项目为我解决了。