clang:错误:生成多个输出文件时无法指定-o

时间:2015-11-20 17:15:42

标签: objective-c

我尝试将我的应用归档以便在我的团队中进行测试,并收到以下错误:

clang:错误:生成多个输出文件时无法指定-o

我的项目中的随机文件发生错误。该日志说明如下:

CompileC /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Objects-normal/armv7/YNotification+CoreDataProperties.o YNotification+CoreDataProperties.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/Clanzett/Documents/Apps/Testballon1
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/Clanzett/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/Clanzett/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -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 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.4 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Testballon1-generated-files.hmap -I/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Testballon1-own-target-headers.hmap -I/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Testballon1-all-target-headers.hmap -iquote /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Testballon1-project-headers.hmap -I/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/BuildProductsPath/Release-iphoneos/include -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GGLInstanceID -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google/Google -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleCloudMessaging -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleInterchangeUtilities -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleMaps -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleNetworkingUtilities -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleSymbolUtilities -I/Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleUtilities -I/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/DerivedSources/armv7 -I/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/DerivedSources -F/Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/BuildProductsPath/Release-iphoneos -F/Users/Clanzett/Documents/Apps/Testballon1/Pods/GoogleMaps/Frameworks -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GGLInstanceID -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google/Google -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleCloudMessaging -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleInterchangeUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleMaps -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleNetworkingUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleSymbolUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GGLInstanceID -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/Google/Google -isystem -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleInterchangeUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleMaps -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleNetworkingUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleSymbolUtilities -isystem /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleUtilities /Users/Clanzett/Documents/Apps/Testballon1/Pods/Headers/Public/GoogleCloudMessaging -isystem -MMD -MT dependencies -MF /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Objects-normal/armv7/YNotification+CoreDataProperties.d --serialize-diagnostics /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Objects-normal/armv7/YNotification+CoreDataProperties.dia -c /Users/Clanzett/Documents/Apps/Testballon1/YNotification+CoreDataProperties.m -o /Users/Clanzett/Library/Developer/Xcode/DerivedData/Testballon1-ewaxhionniicpbgagakfznwubgdk/Build/Intermediates/ArchiveIntermediates/Testballon1/IntermediateBuildFilesPath/Testballon1.build/Release-iphoneos/Testballon1.build/Objects-normal/armv7/YNotification+CoreDataProperties.o

1 个答案:

答案 0 :(得分:1)

在命令行中有-isystem -isystem ...,请检查构建设置以查看是否可以找到问题。

您可以搜索XCBuildConfigutation的{​​{1}}部分(.pbxproj/* Begin XCBuildConfiguration section */之间的所有内容)