Xcode忽略其他链接器标志

时间:2011-03-04 16:31:28

标签: xcode linker

在我目前的项目中,我无法像其他项目那样设置“其他链接标志”。无论我放入我的xcode项目设置的“其他链接标志”部分,它都不会显示在详细的构建日志中,并且不会发生所需的链接:

Other Link Flags

  

Ld build / Debug-iphonesimulator / MyProject.app / MyProject正常i386   cd / Users / theUser / Development / xm8vc / MyProject / trunk   setenv MACOSX_DEPLOYMENT_TARGET 10.6   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/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L / Users / theUser / Development / xm8vc / MyProject / trunk / build / Debug-iphonesimulator -L / Users / theUser / Development / xm8vc / MyProject / trunk -F / Users / theUser / Development / xm8vc / MyProject / trunk / build / Debug-iphonesimulator -F / Users / theUser / Development / xm8vc / MyProject / trunk -filelist /Users/theUser/Development/xm8vc/MyProject/trunk/build/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/i386/MyProject.LinkFileList -mmacosx- version-min = 10.6 -lxml2 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework QuartzCore -framework AVFoundation -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework OpenGLES -framework CFNetwork -framework SystemConfiguration -framework MediaPlayer -lxml2 -lz -framework SpeechKit -o /Users/theUser/Development/xm8vc/MyProject/trunk/build/Debug-iphonesimulator/MyProject.app/MyProject

是否有什么东西会导致xcode忽略“其他链接标志?”

1 个答案:

答案 0 :(得分:5)

你在哪里设置这些标志?您可以在项目的各个级别设置这样的标志 - 项目设置,目标设置等。Working with Xcode Build Settings中有完整的描述。例如,您可能在项目设置中进行设置,然后被目标设置覆盖。