gpt4 book ai didi

ios - Xcode 9 _OBJC_CLASS_$_FBSDKApplicationDelegate

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:53:46 24 4
gpt4 key购买 nike

我正在尝试将 Facebook SDK 实现到我的项目中,但我遇到了同样的问题 Facebook sdk is not a dylib error after update update Xcode 7?好吧,我的 Frameworks 目录中也有 Bolts

在我的build设置中:Frameworks 搜索路径:~/Documents/Frameworks/FacebookSDKs-iOS-4.27.0(这对我来说是正确的)

在我的 Briding-Header.h

#import <Bolts/Bolts.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>

但是,我仍然遇到同样的错误,另外,我刚刚删除了Derived data

错误是:

ld: warning: Auto-Linking supplied '/Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/FBSDKCoreKit.framework/FBSDKCoreKit', framework linker option at /Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/FBSDKCoreKit.framework/FBSDKCoreKit is not a dylib
ld: warning: Auto-Linking supplied '/Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/Bolts.framework/Bolts', framework linker option at /Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/Bolts.framework/Bolts is not a dylib
ld: warning: Auto-Linking supplied '/Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/FBSDKLoginKit.framework/FBSDKLoginKit', framework linker option at /Users/jarvis/Documents/Frameworks/FacebookSDKs-iOS-4.27.0/FBSDKLoginKit.framework/FBSDKLoginKit is not a dylib
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人知道这个错误吗?

最佳答案

嗯,这个解决方案很奇怪,基本上,我删除了拖放到我的 Framework 组,然后我添加了 FBSDKCoreKitFBSDKLoginKitBolt 使用常规设置将它们添加到 Linked Frameworks and Libraries

关于ios - Xcode 9 _OBJC_CLASS_$_FBSDKApplicationDelegate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46454468/

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