项目“ Pods”被拒绝为“ Pods.framework”的隐式依赖项,因为其架构未包含所有必需的架构 [英] Project 'Pods' was rejected as an implicit dependency for 'Pods.framework' because its architectures didn't contain all required architectures
问题描述
项目'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.
推荐答案
可能的解决方案:
- 使用.xc ...文件打开Xcode项目(cocoapods项目)。
- 在项目导航器(左侧的蓝色图标)。
- 在项目下,确保已选择Pods(蓝色图标)。
- 导航至构建设置。 li>
- 仅设置构建活动体系结构=否(对于调试和发行版)。
- 可选:将基本SDK设置为最新的iOS(或选择首选平台) / version)。
- Open Xcode project (cocoapods project) using .xc... file.
- Select Pods project in the project navigator (blue icon on left).
- Under Project, ensure Pods (blue icon) is selected.
- Navigate to Build Settings.
- Set Build Active Architectures Only = No (for both debug & release).
- 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屋!