ben*_*oso 76 google-toolbox-for-mac ios cocoapods firebase swift2
通过"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)
Run Code Online (Sandbox Code Playgroud)
这是我的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
Run Code Online (Sandbox Code Playgroud)
有人知道这个错误吗?
我寻找关系GoogleToolboxForMac和Firebase,但我只是得到一些信息.
仅供参考,我使用Swift 2.3和Firebase 3.8.0.
我将非常感谢您提供的任何帮助.谢谢!
Iza*_*nus 164
我有同样的错误.安装pod后,您将看到以下消息.
[!]从现在开始,请关闭所有当前的Xcode会话并使用MyApp.xcworkspace进行此项目.
我第一次没有注意到这一点,并且正在尝试使用常规xcodeproj文件构建项目.看到这条消息后,我打开了正确的项目,它工作正常.
打开此项目后,您会注意到您有两个子项目.一个是你的项目,另一个是Pods项目.
iPa*_*tel 18
在我的情况下,所有集成都做得很好,也尝试了很多时间来删除和重新安装pod但没有取得成功.
最后尝试下面的步骤
Projetc-> Manage Schemes - >选中复选框"Pods-MyProjectName"
并获得成功.
Pau*_*ien 14
GoogleToolboxForMac是Firebase/Messaging的依赖项.podspec中的详细信息.在进行"pod更新"时,Cocoapods应设置您的工作区以构建和链接GoogleToolboxForMac.
这听起来像你的工作区处于糟糕的状态.产品 - >清洁帮助?如何删除派生数据和ModuleCache(Xcode - >首选项 - >位置 - >派生数据)?
它不是必需的,但您也可以尝试将pod"GoogleToolboxForMac/Logger"明确添加到您的Podfile中.
通过在构建设置->搜索LIBRARY_SEARCH_PATHS中添加$(继承),可以解决此问题。
这是可以理解的,因为在更新项目所依赖的库的最新版本的Pod文件时,调试输出会告诉您需要在何处添加所有$(继承)标志:LIBRARY_SEARCH_PATHS OTHER_LD_FLAGS GCC_PREPROCESSOR_DEFINITIONS
小智 5
its work's 1. select your project in directories 2. select General 3. Add "GoogleToolboxForMac.framework" to the Linked "frameworks and Libraries"
| 归档时间: |
|
| 查看次数: |
49578 次 |
| 最近记录: |