迅速5中没有这样的模块'FacebookCore'>>

问题描述 投票:0回答:1

我正在做自己的测试应用程序,这是我在iOS开发中学习过程的一部分(在Xcode 11.0上使用swift 5)。我想在登录页面上添加Facebook登录,但是在导入库时,我一直得到No such module'FacebookCore'

enter image description here

我按照developer.facebook上的说明进行操作,并尝试使用cocoaPods实现SDK,这是我的Podfile

 # Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'TestApp' do

  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TestApp
  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'

  target 'TestAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TestAppUITests' do
    # Pods for testing
  end

end

按照Facebook的说明执行pod安装并将数据添加到我的info.plist中之后,我可以清楚地看到该框架已在使用库链接二进制文件

中链接过]

enter image description here

但是仍然,我似乎无法导入FacebookCore或FacebookLogin。

PS:我尝试了几种解决方案,例如:

1-运行.xcworkspace而不是.xcodeproj

2-即使显示错误也构建项目(有人说它会消失)

但是他们都不起作用。

我怀疑问题出在我的Framework搜索路径上,但是为什么一开始它会出错?所以我可能是错的,这还是我的搜索路径的屏幕截图:

enter image description here

我正在做自己的测试应用程序,这是我在iOS开发中学习过程的一部分(在Xcode 11.0上使用swift 5)。我想在我的登录页面上添加使用Facebook的登录名,但是我一直没有得到这样的模块'...

swift xcode cocoapods facebook-login facebook-sdk-4.x
1个回答
0
投票

所以原来我必须导入FBSDKCoreKit

而不是FacebookCore
© www.soinside.com 2019 - 2024. All rights reserved.