找不到框架GoogleToolboxForMac

通过“ pod update”更新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

有人知道这个错误吗?


我寻找GoogleToolboxForMac和Firebase的关系,但是我只获得了一些信息。


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


感谢您提供的任何帮助。谢谢!


翻翻过去那场雪
浏览 545回答 3
3回答

慕田峪9158850

我有同样的错误。安装Pod后,您将看到以下消息。[!]从现在开始,请关闭任何当前的Xcode会话,并为此项目使用MyApp.xcworkspace。我第一次没有注意到这一点,而是试图使用常规的xcodeproj文件来构建项目。看到此消息后,我打开了正确的项目,它运行正常。打开此项目后,您会注意到您有两个子项目。一个是您的项目,另一个是Pods项目。

慕哥6287543

就我而言,所有集成都做得很好,并且确实尝试了很多次来删除并重新安装Pod,但是没有成功。最后尝试以下步骤Projetc->管理方案->选中复选框“ Pods-MyProjectName”并获得成功。
打开App,查看更多内容
随时随地看视频慕课网APP