【问题标题】:Xcode ignoring Other Linker FlagsXcode忽略其他链接器标志
【发布时间】:2011-03-04 16:31:28
【问题描述】:

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

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 忽略“其他链接器标志”吗?

【问题讨论】:

    标签: xcode linker


    【解决方案1】:

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

    【讨论】:

    • 就是这样,谢谢!我知道这是我做错的事情,但已经没有地方可以查看了。
    猜你喜欢
    • 1970-01-01
    • 2015-01-24
    • 1970-01-01
    • 1970-01-01
    • 2016-05-27
    • 1970-01-01
    • 2017-11-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多