Pods was rejected as an implicit dependency for "libPods.a" because its architecture "XXX" did not contain all the required architectures

A friend updated Cocoapods in our project. When I pulled the last things 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' 

The result is

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

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

  • Remote Derived Data
  • Delete assembly data
  • Remove containers and reinstall using 'pod install'
  • Clear project
  • All of the above at the same time
  • Experimented with "Build Active Architecture Only", both in our project and in the Pod Project. Introduced armv7 and armv7s as hard code instead of $ variable
  • Experimented with "Architectures", both in our project, and in the Pod Project. Introduced armv7 and armv7s as hard code instead of $ variable

We are committed to iOS 8, iPhone.

My friend made him work by combining the first 4 options, but I can’t.

Does anyone have any suggestions? We have to release before Christmas, so production time is precious: D

+44
xcode cocoapods compiler-errors
Dec 09 '14 at 21:14
source share
4 answers

Try setting Build Active Architecture Only to NO for the Pods project and the target application.

+122
Feb 09 '15 at 13:28
source share

For me, changing the CocoaPod Base SDK project to Last iOS worked.

+4
Jan 05 '16 at 15:00
source share

Try to start the project first on the iPhone 4s in the simulator, after which it should work.

+1
Aug 05 '15 at 16:22
source share

In my case, this was because I had the option "Build Active Architecture Only" set to "Yes for debug mode." Change it is not. Not fixed.

0
Aug 25 '17 at 20:21
source share



All Articles