The Pods project was rejected as an implicit dependency for Pods.framework because its architectures did not contain all the required architectures.

The target AAA-Pods for the Pods project was rejected as an implicit dependency for Pods_AAA.framework because its x86_64 architectures did not contain all the required i386 x86_64 architectures.

This appears as a warning, a linker error appears.

+23
xcode8 cocoapods
source share
5 answers

Possible Solution:

  • Open an Xcode project (cocoapods project) using a .xc file ...
  • Select the Pods project in the project navigator (blue icon on the left).
  • In the "Project" section, select "Coasters" (blue icon).
  • Go to build settings.
  • Install only built-in active architectures = none (for debugging and release).
  • Optional: install the base sdk on the latest version of iOS (or select your preferred platform / version).

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

Recommended Resources:

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

+52
source share

For future googlers: Also make sure your podfile is targeting the same version of iOS your project is targeting:

For example, if you target iOS 10.0 in an Xcode project, your swap file should also include platform :ios, '10.0' at the top.

+14
source share

In a very new Xcode 9.4.1 project, the problem was that my subfile deployment target was set to platform :ios, '11.0' while my iOS deployment target for the project was set to 10.3.

This caused the generated Pods project to target iOS 11.0 (only supported on 64-bit arm64 devices), but since my main project is 10.3 and includes armv7 devices, this does not work when archiving the Release assembly after the Release build builds inactive architectures by nature (unless you only support iOS 11 devices).

The fix is ​​simply to change the deployment target of the subfile according to your main project, in my case it is platform :ios, '10.3' . After that, run pod update and the Pods project should be restored. Launch Xcode, perform a cleanup, and you can start the archiving process.

+2
source share

I understand this question is a bit old, however I spent 2 days struggling with the same problem right after upgrading Xcode to 9.4. What I found was in info.plist under the key required device capabilities armv7 was installed when it was supposed to be empty. Hope this helps someone.

+1
source share

Another solution that works for me.

  1. Open.xcodeproject (not.xcodeworkspace)
  2. Find iOS Deployment Goal
  3. Select the latest version (My latest version is 11.4)
0
source share

All Articles