Pods 被拒绝作为“libPods.a"的隐式依赖项,因为其架构“XXX"不包含所有必需的架构 [英] Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'XXX' didn't contain all required architectures

查看:20
本文介绍了Pods 被拒绝作为“libPods.a"的隐式依赖项,因为其架构“XXX"不包含所有必需的架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一位朋友更新了我们项目中的 Cocoapods.当我从 git 中提取最新的东西时,出现以下错误:

A friend updated Cocoapods in our project. When I pulled the latest stuff from git I got the following error:

Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'x86_64' didn't contain all required architectures 'i386'

结果是

ld: library not found for -lPods-___PODLIBRARY____
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经搜索了几个小时试图找到它.我尝试过的最常见的修复方法是..

I have searched around for hours now trying to find it. The most common fixes I've tried are..

  • 已删除派生数据
  • 删除构建数据
  • 删除 pod,并使用pod install"重新安装
  • 清理项目
  • 同时满足以上所有条件
  • 在我们的项目和 Pod 项目中尝试了仅构建活动架构".插入 armv7 和 armv7s 作为硬代码而不是 $ 变量
  • 在我们的项目和 Pod 项目中尝试了架构".插入 armv7 和 armv7s 作为硬代码而不是 $ 变量

我们的目标是 iOS 8、iPhone.

We are aiming for iOS 8, iPhones.

我的朋友通过结合前 4 个选项让它工作,但我不能.

My friend got it to work by combining the first 4 options, but I cannot.

有人有什么建议吗?我们应该在圣诞节前发布,所以制作时间很宝贵 :D

Does anyone have any suggestions? We're supposed to release before christmas so production time is precious :D

推荐答案

Try to set Build Active Architecture OnlyNO for 'Pods' project and your app's target

Try to set Build Active Architecture Only to NO for 'Pods' project and your app's target

这篇关于Pods 被拒绝作为“libPods.a"的隐式依赖项,因为其架构“XXX"不包含所有必需的架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆