CocoaPods arm64 issue

Ios7Xcode5CocoapodsArm64

Ios7 Problem Overview


When using Podfile for developing iOS 7 app with Xcode5, we always got this issue.

After some searching, seems like no final resolve from CocoaPods ? Maybe resolved at this moment when you see this.

How to resolve such issues right now ?

The issue was: Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'armv7 armv7s arm64'

Ios7 Solutions


Solution 1 - Ios7

  1. Select the Pods project
  2. Change Build Active Architecture Only from Yes to No.

That worked for me.

Note: CocoaPods Troubleshooting Guide recommends matching the Debug setting in your Xcode project, rather than changing the Pod's Build Active Architecture Only. As long as they match it seems to fix the problem.

enter image description here

Solution 2 - Ios7

First, try updating cocoapods in your terminal: gem update cocoapods

If it doesn't work after that, go into your workspace, click on the Pod project, select all Pod targets and set Architectures to (armv7 armv7s arm64).

Still nothing? Try switching it all back to (armv7 armv7s).

xcode screenshot

Solution 3 - Ios7

I had similar issues on XCode 6.1 wherepod install would frequently re-introduce linking errors. Adding $(OTHER_LDFLAGS) to the my target's "Other Linker Flags" got me through this. Please see if this helps.

Solution 4 - Ios7

Just to chip in to the "possible solutions"-pool and because a lot of people with CocoaPods issues are finding this page from Google:

I tried pretty much all suggested solutions, but the thing that did it for me was: In the Pods project in your workspace, go to Build Settings -> Base-SDK. This should be stated in bold. Press backspace to set it to default and set it back to your preferences again (in my case Latest iOS(iOSx.x)).

This oddly solved all my invalid architecture errors. Might help others.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionForrestView Question on Stackoverflow
Solution 1 - Ios7funrollView Answer on Stackoverflow
Solution 2 - Ios7KirualexView Answer on Stackoverflow
Solution 3 - Ios7danfelabsView Answer on Stackoverflow
Solution 4 - Ios7ElechtronView Answer on Stackoverflow