XCode 4-叮当错误
-
25-10-2019 - |
题
我正在从Xcode 3.5迁移到Xcode 4,而当我试图归档我的应用程序以进行Adhoc发行时。
我收到了这个错误
预编译myApp_prefix.pch
ProcessPCH /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth MyApp_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/return/Projects/iphone-MyApp
setenv LANG en_US.US-ASCII
setenv PATH "/Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin:/Xcode4.2/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -DFAVOURITES_ENABLED=0 -isysroot /Xcode4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -gdwarf-2 -fvisibility=hidden -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=3.0 -iquote "/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-generated-files.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-own-target-headers.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-all-target-headers.hmap" -iquote "/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-project-headers.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/BuildProductsPath/Distribution-iphoneos/include" "-I”/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp" -I- "-IDistribution/BuildProductsPath/Distribution-iphoneos/../three20″" "-I“/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp" -I- "-IDistribution/BuildProductsPath/Distribution-iphoneos/../../three20″" -Ithree20/Build/Products/three20 -I/Xcode4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/libxml2 "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/DerivedSources/armv7" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/DerivedSources" "-F/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/BuildProductsPath/Distribution-iphoneos" -c /Users/return/Projects/iphone-MyApp/MyApp_Prefix.pch -o /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth -MMD -MT dependencies -MF /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.d
**clang: error: '-I-' not supported, please use -iquote instead**
**Command /Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1**
您知道我应该做什么来解决这个问题吗?
更新(遵循MacMade的建议后的报告结果)
所以在 目标构建设置:
我什么都没有 其他C标志.
我什么都没有 用户标头搜索路径
在 标题搜索路径, , 我有:
”$(BUILT_PRODUCTS_DIR)/../three20″
“$(BUILT_PRODUCTS_DIR)/../../three20″
./three20/Build/Products/three20
/usr/include/libxml2
但是我不确定在这里要改变什么。
在 C/C ++/Objective-C的编译器 设置,我从 Apple LLVM compiler
至 LLVM GCC
并获取此消息:
cc1obj: note: obsolete option -I- used, please use -iquote instead
cc1obj: error: -I- specified twice
cc1obj: note: obsolete option -I- used, please use -iquote instead
更新(遵循MacMade的更新建议后的报告结果)
所以我移动:
”$(BUILT_PRODUCTS_DIR)/../three20″
“$(BUILT_PRODUCTS_DIR)/../../three20″
至 用户标头搜索路径
它有效!!!
(注意:我不动 ./three20/build/products/three20 因为我明白了
can't find <Three20/Three20.h>
如果我这样做,则在构建项目时出现错误。)
解决方案
显然,您已经为包含路径设置了自定义编译器标志。
转到目标的构建设置并检查此选项:
- 其他C标志
如果其中有东西,则可以用 -iquote
版本。
否则,仍在构建设置中,检查以下选项的值:
- 标题搜索路径
- 用户标头搜索路径
如果适用,请尝试操纵这些值。
否则,您也可以继续使用GCC作为正面的,而不是叮当声。
您可以通过设置 C/C ++/Objective-C的编译器 构建设置为 LLVM GCC 代替 Apple LLVM编译器.
编辑
根据您的编辑,我可以看到您正在使用三十二个库。
根据您如何包含这些内容,您可能需要将这些搜索路径放在 用户标头搜索路径, , 代替 标题搜索路径 (如果您将它们包括在内 ""
代替 <>
).
尝试这样做320,但请留在这里...
其他提示
我尝试了这些解决方案。但是我不能或不为我工作。
我以这种方式解决了这个问题:
我删除了 博物馆 在目标中
当您在左侧的常规标签中单击项目时,有目标
您可以选择解决此问题 一般的 标签 AppNametests 并从下拉列表中选择您的应用程序并启用”允许测试主机应用程序API"
我只是在Instagram lib的情况下遇到了这个问题,我的错误是我将文件导入目标并编译了另一个目标。它给了我一些头痛。
大家好,我们做了一些有效的事情...我们遇到了相同的问题,并且很容易解决...首先,您转到term type cd CD(将整个文件夹拖动您的文件所在的位置),然后按返回
在文件夹内部后,您必须编写:
POD Instal和类型返回
这样的东西。
最后登录:8月21日星期三09:19:29在控制台上
WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ cd WozMac1:~ KrisBasque$ cd /Users/KrisBasque/Documents/QUADDRO/medapp WozMac1:medapp KrisBasque$ pod install Analyzing dependencies
可可录0.23.0可用。
使用afnetworking(1.3.1)下载依赖项(1.3.1)使用MBProgressHud(0.7)使用PSSTACKEDVIEW(1.0)使用可触及性(3.1.1)安装SDWEBIMAGE(3.3),使用Tapkulibrary(0.2.4)安装安装libwebp(0.3.0---Webp) RC7)生成PODS项目集成客户端项目WOZMAC1:MEDAPP KRISBASQUE $
我解决的方式是确保我们没有其他实现文件链接到您的文件。链接界面文件虽然很好
此错误也是由于标头导入错误而造成的。
例如,您的类是“ yourclass.h”,但是如果您导入“ yourclass.m”,则以错误的方式导致此错误。