FacebookLoginSKK 4 Apple Mach-O链接器错误

【FacebookLoginSKK 4 Apple Mach-O链接器错误】智慧并不产生于学历,而是来自对于知识的终生不懈的追求。这篇文章主要讲述FacebookLoginSKK 4 Apple Mach-O链接器错误相关的知识,希望能为你提供帮助。
我正在尝试使用FacebookLogin SDK 4Swift 3集成到我的ios应用程序中。我添加了以下3个框架:BoltsFBSDKCoreKitFBSDKLoginKit。我根据Facebook文档更改了我的Info.plist,创建了Bridging头文件,并将其路径添加到我的Build Settings。
一旦我在AppDelegate.swift文件中添加以下行,我就会得到:

Apple Mach-O Linker Error:func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions) return true }

我尝试了这里提供的选项:Apple Mach-O Linker Error when compiling for device他们都没有帮助(除非我遗漏了什么)。有没有其他人有类似的问题?请帮忙。
答案你有没有在app delegate中添加此方法
func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(application, open: url as URL!, sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String, annotation: [:]) }

也是这一个在willResignActive方法中
func applicationWillResignActive(_ application: UIApplication) { FBSDKAppEvents.activateApp() }


    推荐阅读