的Xcode 4.4铛错误:连接失败(Xcode 4.4 clang error: linker f

2019-09-20 07:51发布

今天4.4升级到山狮和Xcode中后,我的项目之一是不再编译。 我已经验证,它仍然编译行上的Xcode 4.3。 这是我得到的输出 - 任何想法?

Ld "/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Products/Debug-iphonesimulator/Home Loan Finder.app/Home Loan Finder" normal i386
    cd "/Users/Adam/Aspyre/Code/Projects/Binary/Home Loan Finder"
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Products/Debug-iphonesimulator -F/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Products/Debug-iphonesimulator "-F/Users/Adam/Aspyre/Code/Projects/Binary/Home Loan Finder/../../../SDKs" -filelist "/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Intermediates/Home Loan Finder.build/Debug-iphonesimulator/Home Loan Finder.build/Objects-normal/i386/Home Loan Finder.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework CoreGraphics -framework Foundation -framework UIKit -framework MessageUI -framework CoreData -framework ShinobiCharts -framework OpenGLES -framework QuartzCore -framework Security -o "/Users/Adam/Library/Developer/Xcode/DerivedData/Home_Loan_Finder-ciynsbeemzwbzhenhqlhhzbsgebo/Build/Products/Debug-iphonesimulator/Home Loan Finder.app/Home Loan Finder"

0  0x103ced280  __assert_rtn + 144
1  0x103d43877  ld::tool::OutputFile::addressOf(ld::Internal const&, ld::Fixup const*, ld::Atom const**) + 215
2  0x103d4512c  ld::tool::OutputFile::applyFixUps(ld::Internal&, unsigned long long, ld::Atom const*, unsigned char*) + 300
3  0x103d46a6d  ld::tool::OutputFile::writeAtoms(ld::Internal&, unsigned char*) + 621
4  0x103d42c14  ld::tool::OutputFile::writeOutputFile(ld::Internal&) + 564
5  0x103d3d963  ld::tool::OutputFile::write(ld::Internal&) + 147
6  0x103ced8ef  main + 1263
7  0x103cdc234  start + 52
A linker snapshot was created at:
    /tmp/Home Loan Finder-2012-06-27-140754.ld-snapshot
ld: Assertion failed: (_mode == modeFinalAddress), function finalAddress, file /SourceCache/ld64/ld64-133.3/src/ld/ld.hpp, line 657.
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Answer 1:

针对这一情况,谁使用ShinobiCharts.framework:创建上忍类类别等原因引起的错误。 作为一种变通方法,您可以替换继承类(这可能是很痛苦)。



Answer 2:

我在看这个的时刻。

我们相当肯定这是因为目前的框架使用的Xcode 4.3构建和4.4编译器不在一起正确连接一切。

该解决方案似乎是简单地构建框架在Xcode 4.4 - 我们此刻回顾这一点,应该很快就会有更新的框架出来了!

披露:我对ShinobiCharts ShinobiControls工作。

编辑:ShinobiCharts的新版本现已推出,这些问题的解决。



Answer 3:

为了阐明这光,修复是从“所有符号”改变“地带的风格”到“非全局符号”,允许类使用的全局符号。

全面披露:我也ShinobiControls工作!



文章来源: Xcode 4.4 clang error: linker failed
标签: xcode linker