加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – Xcode:找不到-lPods的库

发布时间:2020-12-14 18:12:22 所属栏目:百科 来源:网络整理
导读:有一个本机反应项目,因为我已经设置了 cocoapods并且从那时起使用了xcworkspace文件(反应本机 – firebase的firebase集成所需),所以它不会构建在目标“Staging”之上.当尝试为taget“staging”构建时,我会收到此错误: ld: library not found for -lPods-[ap
有一个本机反应项目,因为我已经设置了 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试图帮助我.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读