Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture arm64 - Cocoa Pods

I am getting this problem when I try to build my app:

enter image description here

I got the problem when after trying to update my Cocoa pods.

EDIT:

Is this what you were talking about @nunofmendes?

enter image description here

EDIT 2:

My pods project looks like this:

enter image description here

like image 969
DevC Avatar asked Dec 03 '14 15:12

DevC


People also ask

How do you fix undefined symbols for Architecture arm64?

The undefined symbols for architecture x86_64: can be easily fixed by defining a value inside the missing declared statements. This is a common problem that many web developers come across while working with several web utilities for designing programs.

What is Cocoapod Xcode?

Swift Objective-C xcode. Cocoapod is a package dependency manager for Objective-C and Swift projects with XCode. Those Languages are used to make applications that run iOS, macOS, watchOS and tvOS. Cocoapods also acts as a coding hub to share your code with other people.

Is Cocoapods a framework?

A shared framework in Cocoapods is refered to as a pod . Once we have captured our project targets and its requirements we have to tell Cocoapods to set up our project based on our project specification. For that we have to run pod install .


1 Answers

You will have to check your CocoaPods projects. In Build Settings of each project, check the Architectures.

You should have:

Architectures: $(ARCHS_STANDARD)
Valid Architectures: armv7 armv7s arm64

This occurs when some projects aren't building to ARM64 when you are trying to compile to an 64bit device (like iPhone 5 or greater)

EDIT#1
You can also try setting Build For Active Architectures to YES
Like in the following image (ignore the valid architectures field in this image):

Image

like image 115
nunofmendes Avatar answered Sep 18 '22 19:09

nunofmendes