为了账号安全,请及时绑定邮箱和手机立即绑定

找不到框架GoogleToolboxForMac

找不到框架GoogleToolboxForMac

慕桂英3389331 2019-11-29 10:06:52
通过“ 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 GoogleToolboxForMacclang: 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  endend有人知道这个错误吗?我寻找GoogleToolboxForMac和Firebase的关系,但是我只获得了一些信息。仅供参考,我使用Swift 2.3和Firebase 3.8.0。感谢您提供的任何帮助。谢谢!
查看完整描述

3 回答

?
慕无忌1623718

TA贡献1744条经验 获得超4个赞

我有同样的错误。安装Pod后,您将看到以下消息。


[!]从现在开始,请关闭任何当前的Xcode会话,并为此项目使用MyApp.xcworkspace。


我第一次没有注意到这一点,而是试图使用常规的xcodeproj文件来构建项目。看到此消息后,我打开了正确的项目,它运行正常。


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


查看完整回答
反对 回复 2019-11-29
?
ibeautiful

TA贡献1993条经验 获得超5个赞

GoogleToolboxForMac是Firebase / Messaging的依赖项。有关详细信息,请参见podspec。在进行“ pod更新”时,Cocoapods应该设置您的工作区以构建和链接GoogleToolboxForMac。


听起来好像有关您的工作区的状态很差。产品->清洁有帮助吗?删除派生数据和ModuleCache(Xcode->首选项->位置->派生数据)怎么办?


不必要,但您也可以尝试将Pod'GoogleToolboxForMac / Logger'明确添加到Podfile中。


查看完整回答
反对 回复 2019-11-29
  • 3 回答
  • 0 关注
  • 534 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信