找不到框架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。


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


慕桂英3389331
浏览 543回答 3
3回答

慕无忌1623718

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

ibeautiful

GoogleToolboxForMac是Firebase / Messaging的依赖项。有关详细信息,请参见podspec。在进行“ pod更新”时,Cocoapods应该设置您的工作区以构建和链接GoogleToolboxForMac。听起来好像有关您的工作区的状态很差。产品->清洁有帮助吗?删除派生数据和ModuleCache(Xcode->首选项->位置->派生数据)怎么办?不必要,但您也可以尝试将Pod'GoogleToolboxForMac / Logger'明确添加到Podfile中。
打开App,查看更多内容
随时随地看视频慕课网APP