3

我尝试归档 ZxingWedget Demo,scanTest。编译没问题。它可以在模拟器上运行。但是在ios6.0上不能完全存档。

这是错误:

Stripping /Users/ganguo/Library/Developer/Xcode/DerivedData/ScanTest-gadjcaxemklyqpcxsvmiorzakfhu/Build/Intermediates/ArchiveIntermediates/ScanTest/IntermediateBuildFilesPath/ZXingWidget.build/Release-iphoneos/ZXingWidget.build/Objects-normal/armv7/libZXingWidget.a
    cd /Users/ganguo/objc/lib/zxing/iphone/ZXingWidget
    setenv PATH "/Applications/app/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/app/Xcode45-DP4.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/app/Xcode45-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -S /Users/ganguo/Library/Developer/Xcode/DerivedData/ScanTest-gadjcaxemklyqpcxsvmiorzakfhu/Build/Intermediates/ArchiveIntermediates/ScanTest/IntermediateBuildFilesPath/ZXingWidget.build/Release-iphoneos/ZXingWidget.build/Objects-normal/armv7/libZXingWidget.a

0  0x10eaf75f0  __assert_rtn + 144
1  0x10eb5ed12  ld::tool::FunctionStartsAtom<arm>::encode() const + 594
2  0x10eb4d05b  ld::tool::OutputFile::updateLINKEDITAddresses(ld::Internal&) + 251
3  0x10eb483b8  ld::tool::OutputFile::write(ld::Internal&) + 136
4  0x10eaf7c5f  main + 1263
A linker snapshot was created at:
    /tmp/strip.7jH8OR-2012-07-16-113649.ld-snapshot
ld: Assertion failed: (addr != badAddress), function encode, file /SourceCache/ld64/ld64-134.5/src/ld/LinkEdit.hpp, line 1289.
/Applications/app/Xcode45-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: internal link edit command failed
Command /Applications/app/Xcode45-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip failed with exit code 1
4

3 回答 3

2

我今天针对这个问题向 Apple 提交了错误 (12176840)。

于 2012-08-26T22:20:36.673 回答
0

我相信 zxing 库还不支持 armv7 架构。我很想错,虽然...

于 2012-09-24T13:35:02.660 回答
0

做一个清洁,然后再试一次。如果仍然失败,请向 Apple 提交错误。这是一个 xcode/toolchain 错误(在预发布软件中)。

于 2012-08-16T05:11:22.807 回答