gpt4 book ai didi

swift - 安装了 CocoaPods 和 Braintree 现在我的项目无法构建

转载 作者:行者123 更新时间:2023-11-30 10:10:28 24 4
gpt4 key购买 nike

    Ld /Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Products/Debug-iphonesimulator/Podding.app/Podding normal x86_64
cd /Users/admin/Development/zift/Podding
export IPHONEOS_DEPLOYMENT_TARGET=8.4
export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Products/Debug-iphonesimulator -L/Users/admin/Development/zift/Podding/Pods/Braintree/Braintree/PayPal/mSDK -F/Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Intermediates/Podding.build/Debug-iphonesimulator/Podding.build/Objects-normal/x86_64/Podding.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBraintree -lPayPalMobile-BT -lc++ -framework AVFoundation -framework Accelerate -framework AddressBook -framework AudioToolbox -framework CoreLocation -framework CoreMedia -framework MessageUI -framework MobileCoreServices -framework SystemConfiguration -framework UIKit -weak_framework PassKit -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Intermediates/Podding.build/Debug-iphonesimulator/Podding.build/Objects-normal/x86_64/Podding.swiftmodule -mios-simulator-version-min=8.4 -lPods -Xlinker -dependency_info -Xlinker /Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Intermediates/Podding.build/Debug-iphonesimulator/Podding.build/Objects-normal/x86_64/Podding_dependency_info.dat -o /Users/admin/Library/Developer/Xcode/DerivedData/Podding-ffudeqoeybkocbevxvjrdlvtdswc/Build/Products/Debug-iphonesimulator/Podding.app/Podding

duplicate symbol _llvm.cmdline in:
/Users/admin/Development/zift/Podding/Pods/Braintree/Braintree/PayPal/mSDK/libPayPalMobile-BT.a(PPZebraAnalyticsWidgetCategories.o)
/Users/admin/Development/zift/Podding/Pods/Braintree/Braintree/PayPal/mSDK/libPayPalMobile-BT.a(PP2FAViewController.o)
duplicate symbol _llvm.embedded.module in:
/Users/admin/Development/zift/Podding/Pods/Braintree/Braintree/PayPal/mSDK/libPayPalMobile-BT.a(PPZebraAnalyticsWidgetCategories.o)
/Users/admin/Development/zift/Podding/Pods/Braintree/Braintree/PayPal/mSDK/libPayPalMobile-BT.a(PP2FAViewController.o)

最后两行“重复”的行重复大约一百次,然后出现此错误

ld: 250 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我完全按照 CocoaPods 网站的说明进行安装。使用 Xcode6 和 swift。我尝试了桥接 header 仍然没有成功。我尝试使用一个全新的项目也得到了相同的结果。我错过了什么?

最佳答案

我通过更改build设置解决了这个问题。在 Xcode 中单击项目的根目录,然后查看“build设置”。导航到“链接”并确保显示“所有”设置(build设置窗口的右上角区域)。然后从“其他链接器标志”中删除 Obj C 以及 $inherited 设置。我能够打扫和 build 。希望这可以帮助。我在其他地方看到了这个答案,但我没有弄清楚,因为他们没有删除 $inherited 标志。

关于swift - 安装了 CocoaPods 和 Braintree 现在我的项目无法构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33227092/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com