未找到框架 GoogleToolboxForMac [英] Framework not found GoogleToolboxForMac

查看:38
本文介绍了未找到框架 GoogleToolboxForMac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过pod update"更新我的 Firebase 后,出现如下错误:

After I update my Firebase via "pod update", I got error like this :

ld: warning: directory not found for option '-F/Users/bennysantoso/Library/Developer/Xcode/DerivedData/FCM-atfcxuircoryufazlomgwfgmvaqm/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: framework not found GoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我的 Podfile:

Here my Podfile :

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
pod 'Firebase/Core'
pod 'Firebase/Messaging'

target 'BB' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BB

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

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

end

有人知道这个错误吗?

我寻找 GoogleToolboxForMac 和 Firebase 的关系,但我只得到了一点信息.

I seek out relationships GoogleToolboxForMac and Firebase, but I just get a little bit of information.

仅供参考,我使用 Swift 2.3 和 Firebase 3.8.0.

FYI, I use Swift 2.3 and Firebase 3.8.0.

如果您能提供任何帮助,我将不胜感激.谢谢!

I will be grateful for any help you can provide. Thanks!

推荐答案

我遇到了同样的错误.安装 Pod 后,您将看到以下消息.

I had the same error. Once you install the pods, you'll see the following message.

[!] 请关闭所有当前的 Xcode 会话并使用 MyApp.xcworkspace从现在开始为这个项目.

[!] Please close any current Xcode sessions and use MyApp.xcworkspace for this project from now on.

我第一次没有注意到这一点,并试图使用常规 xcodeproj 文件构建项目.看到这条消息后,我打开了正确的项目,它运行良好.

I didn't notice this for the first time and was trying to build the project using the regular xcodeproj file. After I saw this message, I opened the right project and it worked fine.

打开此项目后,您会注意到您有两个子项目.一个是您的项目,另一个是 Pods 项目.

Once you open this project you'll notice that you have two subprojects. One would be your project, and another would be the Pods project.

这篇关于未找到框架 GoogleToolboxForMac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆