ios – Xcode:找不到-lPods的库

前端之家收集整理的这篇文章主要介绍了ios – Xcode:找不到-lPods的库前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有一个本机反应项目,因为我已经设置了 cocoapods并且从那时起使用了xcworkspace文件(反应本机 – firebase的firebase集成所需),所以它不会构建在目标“Staging”之上.当尝试为taget“staging”构建时,我会收到此错误

ld: library not found for -lPods-[app]
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

enter image description here

当我归档项目时,它适用于调试,并且(至少它不会抛出错误).

由于代码推送,我有一个“临时”目标.在版本0.48.4和Xcode 9上使用react-native(在this guide之后创建它,但在使用cocoapods之前)

我的podfile:

platform :ios,'9.0'

target 'xx' do
  #use_frameworks!

  # Pods 
  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'Firebase/Database'
  pod 'Firebase/Messaging'
  pod 'Firebase/Auth'
  pod 'Firebase/Storage'

end

尝试使用和不使用use_frameworks !,清理项目,删除DerivedData,解体并重新集成pod.

什么可能导致这个? (如果您需要更多信息,请告诉我)

解决方法

什么对我有用:

>使用pod deintegrate解体所有pod(使用enter link description here)
> pod安装
>删除[项目名称]>框架> Pods_ [项目名称] .framework(红色,但实际上有更多文件为红色)
>构建成功

this post的帮助下这样做.感谢Maurice试图帮助我.

猜你在找的Xcode相关文章