Build Error: "Unknown type name" ffi_cif ""

When creating my Xcode project for one of my cocoapod, libffi dependencies, I get 5 build errors on all lines /Pods/libffi/ios/include/ffi_common.h:77:1: Unknown type name 'ffi_status'

Any ideas what I could try to debug? I already tried to clean the project.

+8
debugging ios xcode libffi
source share
3 answers

I have the same problem. Xcode 5.1 and Xcode 6.0 GM, both iOS devices and simulators. This also worked for me: http://cameronspickert.com/2014/01/20/remove-the-arm64-architecture-from-cocoapods-targets.html .

0
source share

I had a problem compiling an open source project on an iPhone 6 simulator. I built it for earlier devices and it worked fine

0
source share

There is a modern solution. The problem is the same, 64-bit support of third-party libraries of third-party developers. Add this to the bottom of your subfile:

 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |configuration| target.build_settings(configuration.name)['ARCHS'] = '$(ARCHS_STANDARD_32_BIT)' end end end 

This is slightly different (updated) from the one indicated in one of the messages above.

0
source share

All Articles