Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'XXX' didn't contain all required architectures

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

This results in

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

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

  • Deleted derived data
  • Delete build data
  • Delete pods, and reinstalled with 'pod install'
  • Clean project
  • All of the above at the same time
  • Experimented with 'Build Active Architecture Only', both in our project and in Pod Project. Inserted armv7 and armv7s as hard code instead of $ variable
  • Experimented with 'Architectures', both in our project and in Pod Project. Inserted armv7 and armv7s as hard code instead of $ variable

We are aiming for iOS 8, iPhones.

My friend got it to work by combining the first 4 options, but I cannot.

Does anyone have any suggestions? We're supposed to release before christmas so production time is precious :D

like image 854
C-A Avatar asked Dec 09 '14 21:12

C-A


People also ask

How do I specify swift version in Podfile?

How do I configure each pod version in the Podfile installer? If I set config. build_settings['SWIFT_VERSION'] = '3.0' , than we have issues with Swift 2.3 pods. The best solution is if we set each pod legacy version separately to avoid having to manually set it.

How do you add pods to Podfile?

Run open Podfile. Which opens the Podfile in textEdit. Add pod'CorePlot', '~> 1.4' to it and save. Run pod install -- NOTE* that is **pod update if already installed.

What is Podfile and Podfile lock?

Podfile. lock is used to make sure that every members of the team has the same versions of pods installed on the project. This file is generated after you run the command: pod install. It gets updated when you run pod install or pod update.


1 Answers

Try to set Build Active Architecture Only to NO for 'Pods' project and your app's target

like image 79
ananas Avatar answered Oct 05 '22 08:10

ananas