项目“ Pods”被拒绝为“ Pods.framework”的隐式依赖项,因为其架构未包含所有必需的架构 [英] Project 'Pods' was rejected as an implicit dependency for 'Pods.framework' because its architectures didn't contain all required architectures

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

问题描述

项目'Pods'的目标'AAA-Pods'被拒绝为'Pods_AAA.framework'的隐式依赖项,因为其架构'x86_64'不包含所有必需的架构'i386 x86_64'。

Target 'AAA-Pods' for project 'Pods' was rejected as an implicit dependency for 'Pods_AAA.framework' because its architectures 'x86_64' didn't contain all required architectures 'i386 x86_64'.

这是警告,然后出现链接器错误。

This appears as warning, then linker error appears.

推荐答案

可能的解决方案:


  1. 使用.xc ...文件打开Xcode项目(cocoapods项目)。

  2. 在项目导航器(左侧的蓝色图标)。

  3. 在项目下,确保已选择Pods(蓝色图标)。

  4. 导航至构建设置。
  5. li>
  6. 仅设置构建活动体系结构=否(对于调试和发行版)。

  7. 可选:将基本SDK设置为最新的iOS(或选择首选平台) / version)。

  1. Open Xcode project (cocoapods project) using .xc... file.
  2. Select Pods project in the project navigator (blue icon on left).
  3. Under Project, ensure Pods (blue icon) is selected.
  4. Navigate to Build Settings.
  5. Set Build Active Architectures Only = No (for both debug & release).
  6. Optional: set base sdk to latest iOS (or select the preferred platform/version).

注意:此解决方案为我解决了此问题(警告和链接器错误)。

Note: This solution resolved this issue (warning and linker error) for me.

建议资源:

Github项目: https://github.com/CocoaPods/CocoaPods/issues/2053
Github Pull请求: https://github.com/CocoaPods/CocoaPods/pull/1352

Github Project: https://github.com/CocoaPods/CocoaPods/issues/2053 Github Pull Request: https://github.com/CocoaPods/CocoaPods/pull/1352

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

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