Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project 'Pods' was rejected as an implicit dependency for 'Pods.framework' because its architectures didn't contain all required architectures

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.

like image 532
Arshin Avatar asked Jun 15 '17 05:06

Arshin


People also ask

How do I add pods dependencies?

You can add dependencies on subspecs. Specify the minimum deployment target version for the Pod library. Re-import the project.


1 Answers

Possible Solution:

  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.

Suggested resources:

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

like image 53
Arshin Avatar answered Sep 28 '22 06:09

Arshin