在我通过"pod更新"更新Firebase之后,我得到了如下错误:

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:

# 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

有人知道这个错误吗?

我寻找谷歌ToolboxFormac和Firebase的关系,但我只得到一点信息.

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

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

推荐答案

我也犯了同样的错误.一旦安装了POD,您将看到以下消息.

[!] 请关闭所有当前Xcode会话并使用MyApp.xcworkspace

我第一次没有注意到这一点,正在try 使用常规的xcodeproj文件构建项目.在我看到这条消息后,我打开了正确的项目,它工作得很好.

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

Ios相关问答推荐

Flutter应用程序无法使用IOS/Swift的蓝牙核心库发现某些外围设备

自定义alert 未执行任何操作

为什么EKEventStore().questFullAccessToEvents()可以与模拟器一起使用,而不能与真实设备一起使用?

执行devicectl:ProcessException时出错:进程异常退出:错误:命令超时超过5.0秒

如何在Swift中同时实现三个手势?

iOS 16.4,SwiftUI 底部工作表有时会忽略presentationDetents

NSError 错误领域: "CBATTErrorDomain" 代码: 128 0x0000000282b111a0

Flutter Aging Person 自定义小部件

撤销 Apple 登录令牌以进行帐户删除过程

添加到单个自定义视图时,Swiftui 项目会在所有视图中重复

如何为视图的 colored颜色 和宽度设置动画?

在 Swift 中合并子数组

Xcode intellisense 彩色框中字母的含义,如 f、T、C、M、P、C、K、# 等

iPhone 6 和 6 Plus 媒体查询

iOS:应用程序在安装应用程序时未征求用户许可.每次都获得 kCLAuthorizationStatusNotDetermined - Objective-c & Swift

如何覆盖@synthesized getter?

从 WKWebView 获取所有 cookie

什么是伞头?

iOS UITextView 或 UILabel 带有可点击的动作链接

使用 xib 创建可重用的 UIView(并从情节提要中加载)