Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integration error with Cocoapods and XCode5

When building my project in the new XCode5, I receive the following warning: Pods-App was rejected as an implicit dependency for 'libPods-App.a' because its architectures 'i386' didn't contain all required architectures 'x86_64'.

like image 438
Raphael Oliveira Avatar asked Sep 18 '13 20:09

Raphael Oliveira


3 Answers

To fix that, select the Pods project in the left menu, then under the targets section select the Pods-#YourAppName# target and in the build settings click on the Architectures and press delete so it goes to the default option (Standard architectures (armv7, armv7s). More information can be found in this link.

like image 159
Raphael Oliveira Avatar answered Oct 20 '22 04:10

Raphael Oliveira


Non of the other answers worked for me.

What eventually solved it for me is to make sure Build Active Architecture Only is set to Yes for Debug and No for Release in my app's xcodeproj file.

Also, because I have custom configurations, I had to add the following to the Podfile:

xcodeproj 'MyApp.xcodeproj', 'MyDebugConfiguration' => :debug, 'MyReleaseConfiguration' => :release
like image 18
yonix Avatar answered Oct 20 '22 04:10

yonix


Take a look at the blog post here, it will do the work.

To make your Applications compatible for iPhone 5s and older models (till iPhone 3Gs running iOS6), select the following option for your architectures – “Standard Architectures – armv7, armv7s”. Do not select the option that says “Standard Architectures (including 64 bit)…”. Since the Arm instruction sets are backward compatible, any application compiled for armv7s will also run on the iPhone 5s or the iPhone 5c.

ARCHS = armv7 armv7s

For valid architectures in the build settings, you can specify arm64, armv7, armv7s.

VALID_ARCHS = armv6 armv7 armv7s arm64

like image 10
Shahid Aslam Avatar answered Oct 20 '22 03:10

Shahid Aslam