菜鸟教程小白 发表于 2022-12-13 03:51:48

ios - bolt Apple Mach-O 链接器错误


                                            <p><pre><code>duplicate symbol _BFMeasurementEventArgsKey in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkParseEventName in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateInEventName in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateOutEventName in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateBackToReferrerEventName in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _OBJC_CLASS_$_BFMeasurementEvent in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _OBJC_METACLASS_$_BFMeasurementEvent in:
    /Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
    /Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
ld: 91 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>

<p>所以我知道我的文件中有重复项,这就是我收到此错误的原因(至少根据 ld 我认为这是问题所在)。我不知道该怎么做是协调多个文件。我尝试完全移除 Bolt,但这让 Xcode 很生气。真的很生气。关于如何解决这个问题的任何帮助?我很确定这很容易,但我是菜鸟。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>以后咨询的答案:</p>

<p>最终解决我的问题的是从头开始并通过 Cocoapods 安装我的依赖项。如果您尝试通过拖放添加框架,然后稍后 user= Cocoapods,则 Cocoapods 不会注意到以前的框架,并且 Cocoapods 将尝试再次安装相同的框架。 </p>

<p>因此,当使用依赖项时,要么只使用拖放,要么从一开始就只使用 Cocoapods。不要试图混搭。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios -boltApple Mach-O 链接器错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/27404610/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/27404610/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - bolt Apple Mach-O 链接器错误