1

我不断收到此错误

    Ld "/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Intermediates/House Defender.build/Debug-iphoneos/House Defender.build/Objects-normal/armv7/House Defender" normal armv7
cd "/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Products/Debug-iphoneos "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/facebook-ios-sdk" 
"-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/Submodules/evernote-ios-sdk/UnitTests/3rdParty/OCMock" "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/GoogleAdMobAdsSdkiOS-6.1.4/Add-ons/GoogleAnalyticsiOS_2.0beta3/Library" "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/GoogleAdMobAdsSdkiOS-6.1.4" 
 "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/Chilkat" "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/Submodules/evernote-ios-sdk/UnitTests/3rdParty/OCMock" "-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/Submodules/ShareKit/Submodules/evernote-ios-sdk/UnitTests/3rdParty/OCMock" 
"-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/AdWhirl/GoogleAdMobAdsSdkiOS-6.1.4" 
"-L/Users/Justin/Dropbox/BLMSRC/House Defender/2.0 2/House Defender/House Defender/libs/GoogleAdMobAdsSdkiOS-6.1.4" 
-F/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist "/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Intermediates/House Defender.build/Debug-iphoneos/House Defender.build/Objects-normal/armv7/House Defender.LinkFileList" 
-dead_strip -v -lz -ObjC -all_load -x -fobjc-link-runtime -miphoneos-version-min=6.0 -framework SystemConfiguration -framework MediaPlayer -framework MessageUI -framework Security -framework Twitter -framework CFNetwork -framework iAd -framework AddressBook -framework MapKit -lz -lsqlite3 -framework StoreKit 
/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Products/Debug-iphoneos/libShareKit.a -lGoogleAdMobAds -framework QuartzCore 
-framework OpenGLES -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -framework GameKit -lchilkatIos -o "/Users/Justin/Library/Developer/Xcode/DerivedData/House_Defender-egpzlctivcelfbbmefwjdphmrmtr/Build/Intermediates/House Defender.build/Debug-iphoneos/House Defender.build/Objects-normal/armv7/House Defender"

clang: error: language not recognized: '-fobjc-link-runtime'

我到处看了看,没有答案。

4

2 回答 2

0

链接器命令行显示一个无法识别的选项“-fobjc-link-runtime”。尝试从构建设置的“链接”选项中查找并删除该选项。

于 2014-02-04T06:36:03.643 回答
0

根据 clang 手册页,-x 必须后跟语言规范:

-x 语言

将后续输入文件视为具有类型语言。

于 2014-04-14T20:17:56.693 回答