gpt4 book ai didi

ios - 如何修复 Apple Mach-O 链接器 (ld) 错误组 - ld : library not found for -lFBSDKCoreKit

转载 作者:行者123 更新时间:2023-11-28 23:48:16 25 4
gpt4 key购买 nike

我收到这个错误已经好几天了,我尝试了几种解决方案,例如:

  • 我总是打开 .xcworkspace 文件

  • 我总是清理项目并重新启动

  • 我总是重新启动 xcode 并重新启动

  • 我从 .xconfig 文件中删除了库搜索路径,并且
    重新启动

  • 我从 .xconfig 文件中删除了 OTHER_LDFLAGS 并重新启动

  • 我从 DerivedData 中删除应用的文件夹

我的pod文件内容:

pod 'Firebase'
pod 'Bolts'
pod 'Firebase/Firestore'
pod 'GoogleMobileAds'
pod 'Fabric'
pod 'Crashlytics'
pod 'PersonalizedAdConsent'
pod 'Highcharts', '~> 6.1.0'
pod 'FBSDKCoreKit'
pod 'GoogleToolboxForMac'
pod 'FirebaseAnalytics'

完整错误:

Ld /Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Products/Debug-iphoneos/MyApp.app/MyApp normal arm64
cd "/Users/macbook/Documents/app ios /MyApp New"
export IPHONEOS_DEPLOYMENT_TARGET=11.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk -L/Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Products/Debug-iphoneos -F/Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Products/Debug-iphoneos -F/Users/macbook/Documents/app\ ios\ /MyApp\ New -filelist /Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/MyApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=11.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lBoringSSL -lFBSDKCoreKit -lGoogleToolboxForMac -lProtobuf -lc++ -lgRPC -lgRPC-Core -lgRPC-ProtoRPC -lgRPC-RxLibrary -lleveldb-library -lnanopb -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseFirestore -framework FirebaseInstanceID -framework FirebaseNanoPB -framework GLKit -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework Accounts -weak_framework AdSupport -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework JavaScriptCore -weak_framework QuartzCore -weak_framework SafariServices -weak_framework Security -weak_framework Social -weak_framework UIKit -weak_framework WebKit -framework FBSDKCoreKit -framework WebKit -framework AVFoundation -framework CoreMedia -framework QuartzCore -framework AdSupport -framework CoreGraphics -framework SystemConfiguration -framework CoreTelephony -framework StoreKit -framework CoreFoundation -framework Foundation -framework GoogleMobileAds -framework CoreData -framework UIKit -Xlinker -dependency_info -Xlinker /Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_dependency_info.dat -o /Users/macbook/Library/Developer/Xcode/DerivedData/MyApp-gydeutwlcipqlofsryockyhughug/Build/Products/Debug-iphoneos/MyApp.app/MyApp

ld: library not found for -lFBSDKCoreKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请帮我解决这个错误

最佳答案

重新安装/更新 pod 并将 Build Active Architecture OnlyBuild Settings 设置为 Yes

关于ios - 如何修复 Apple Mach-O 链接器 (ld) 错误组 - ld : library not found for -lFBSDKCoreKit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52236311/

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