使用cocoapods安装时,我找不到<library>的框架

时间:2016-05-17 18:27:50

标签: ios cocoapods

我通过cocoapods安装了Google登录,但是当我尝试编译时遇到了这个错误

ld: framework not found GoogleAppUtilities
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, '8.0'

target 'Project_name' do
  pod 'PayPal-iOS-SDK'
  pod 'Google/SignIn'
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Project_name

  target 'Project_nameTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'Project_nameUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我首先安装了PayPal库而没有问题。

我正在使用.xcworkspace 尝试使用$ pod deintegrate进行清洁和再次构建 再次清理项目和$ pod init,似乎没有任何改变。

2 个答案:

答案 0 :(得分:0)

只需添加您的评论作为解决方案:它也适用于我:

<块引用>

解决了,谢谢。你的回答没有解决问题,但它给了 我一个主意。我做到了,在 Build 中 Settings->SearchPaths->FrameworkSearchPaths 我在 调试和发布。

答案 1 :(得分:-1)

在Xcode中,在Pods项目中查找名为GoogleAppUtilities.framework的文件。它可能位于Pods / Products文件夹下。您需要在主项目中添加对此文件(GoogleAppUtilities.framework)的引用。在主应用程序项目文件中,转到构建设置选项卡,查看名为&#34;链接二进制文件和库的列表&#34; ...您需要在此处添加对GoogleAppUtilities.framework文件的引用。

相关问题