提问人:meisel 提问时间:4/3/2014 最后编辑:Mathiasmeisel 更新时间:3/13/2017 访问量:2067
生成错误:“未知类型名称'ffi_cif'”
Build error: "Unknown type name 'ffi_cif'"
问:
在构建我的 XCode 项目时,对于我的一个 cocoapod 依赖项 libffi,我收到 5 个构建错误,所有错误都是/Pods/libffi/ios/include/ffi_common.h:77:1: Unknown type name 'ffi_status'
任何想法我可以尝试调试它吗?我已经尝试过清理该项目。
答:
0赞
kunalg
12/8/2014
#1
我有同样的问题。Xcode 5.1 和 Xcode 6.0 GM,包括 ios 设备和模拟器。 这也对我有用:http://cameronspickert.com/2014/01/20/remove-the-arm64-architecture-from-cocoapods-targets.html。
0赞
Lucas
1/12/2015
#2
我在 iPhone 6 模拟器上编译开源项目时遇到了这个问题。 为早期的设备构建了它,它运行良好
0赞
Zeb
3/13/2017
#3
有一个最新的解决方案。问题还是一样的,64位arch支持一些第三方库。在 Podfile 的底部添加以下内容:
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
它与上面的一篇文章中所示的内容略有不同(更新)。
评论