作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试将 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
组,然后我添加了 FBSDKCoreKit
、FBSDKLoginKit
和 Bolt
使用常规设置将它们添加到 Linked Frameworks and Libraries
关于ios - Xcode 9 _OBJC_CLASS_$_FBSDKApplicationDelegate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46454468/
我正在尝试将 Facebook SDK 实现到我的项目中,但我遇到了同样的问题 Facebook sdk is not a dylib error after update update Xcode
我是一名优秀的程序员,十分优秀!