请问关于cocoapod与libffi的问题
2017-01-01 01:59
267 查看
请问大家谁用过libffi这个东西,现在发现创建自定义的pod时,libffi无法通过验证(pod spec lint)。目前公司很多项目用到BlocksKit这个库,它本身使用libffi。因此弄得现在无法更新这些项目了。一时找不到解决方案。
以下就是基本的控制台输出:
ricols-MacBook-Pro:MyPodExample ricolwang$ cat MyPodExample.podspec
Pod::Spec.new do |s|
s.name = "MyPodExample"
s.version = "0.0.1"
s.platform = :ios, "6.1"
s.summary = "This is an example to show how to create a cocoapod"
s.description = <<-DESC
A longer description of MyPodExample in Markdown format.
* Think: Why did you write this? What is the focus? What does it do?
* CocoaPods will be using this to generate tags, and improve search results.
* Try to keep it
4000
short, snappy and to the point.
* Finally, don't worry about the indent, CocoaPods strips it!
DESC
s.homepage = "https://bitbucket.org"
s.license = { :type => "RMIT", :text => "this is a test!" }
s.author = { "Ricol Wang" => "wangxinghe1983@gmail.com" }
s.source = { :git => "https://wangxinghe@bitbucket.org/wangxinghe/mypodexample.git", :tag => "0.0.1" }
s.source_files = "MyPodExample/MyObject.{h,m}"
s.requires_arc = true
s.dependency 'libffi'
end
ricols-MacBook-Pro:MyPodExample ricolwang$ pod spec lint MyPodExample.podspec
-> MyPodExample (0.0.1)
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:325:21: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- NOTE | [xcodebuild] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/alloca.h:39:9: note: expanding this definition of 'alloca'
- NOTE | [xcodebuild] libffi/ios/include/ffi_common.h:24:10: note: other definition of 'alloca'
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:332:21: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:381:26: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:77:1: error: unknown type name 'ffi_status'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:77:33: error: unknown type name 'ffi_cif'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:78:1: error: unknown type name 'ffi_status'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:78:37: error: unknown type name 'ffi_cif'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:84:3: error: unknown type name 'ffi_cif'
- ERROR | [iOS] [xcodebuild] libffi/ios/src/debug.c:50:20: error: unknown type name 'ffi_type'
Analyzed 1 podspec.
[!] The spec did not pass validation.
ricols-MacBook-Pro:MyPodExample ricolwang$
以下就是基本的控制台输出:
ricols-MacBook-Pro:MyPodExample ricolwang$ cat MyPodExample.podspec
Pod::Spec.new do |s|
s.name = "MyPodExample"
s.version = "0.0.1"
s.platform = :ios, "6.1"
s.summary = "This is an example to show how to create a cocoapod"
s.description = <<-DESC
A longer description of MyPodExample in Markdown format.
* Think: Why did you write this? What is the focus? What does it do?
* CocoaPods will be using this to generate tags, and improve search results.
* Try to keep it
4000
short, snappy and to the point.
* Finally, don't worry about the indent, CocoaPods strips it!
DESC
s.homepage = "https://bitbucket.org"
s.license = { :type => "RMIT", :text => "this is a test!" }
s.author = { "Ricol Wang" => "wangxinghe1983@gmail.com" }
s.source = { :git => "https://wangxinghe@bitbucket.org/wangxinghe/mypodexample.git", :tag => "0.0.1" }
s.source_files = "MyPodExample/MyObject.{h,m}"
s.requires_arc = true
s.dependency 'libffi'
end
ricols-MacBook-Pro:MyPodExample ricolwang$ pod spec lint MyPodExample.podspec
-> MyPodExample (0.0.1)
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:325:21: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- NOTE | [xcodebuild] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/alloca.h:39:9: note: expanding this definition of 'alloca'
- NOTE | [xcodebuild] libffi/ios/include/ffi_common.h:24:10: note: other definition of 'alloca'
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:332:21: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- NOTE | [xcodebuild] libffi/ios/src/arm/ffi.c:381:26: warning: ambiguous expansion of macro 'alloca' [-Wambiguous-macro]
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:77:1: error: unknown type name 'ffi_status'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:77:33: error: unknown type name 'ffi_cif'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:78:1: error: unknown type name 'ffi_status'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:78:37: error: unknown type name 'ffi_cif'
- ERROR | [xcodebuild] libffi/ios/include/ffi_common.h:84:3: error: unknown type name 'ffi_cif'
- ERROR | [iOS] [xcodebuild] libffi/ios/src/debug.c:50:20: error: unknown type name 'ffi_type'
Analyzed 1 podspec.
[!] The spec did not pass validation.
ricols-MacBook-Pro:MyPodExample ricolwang$
相关文章推荐
- Android如何修改桌面的图标
- 使用属性动画时, translationX, translationY等属性怎样设置dp值而不是像素值
- androi如何把图片压缩成300KB大小?
- 一段将EXCEL上传到ACCESS中的代码,在本地服务器测试通过,上传到远程服务器后不行了
- 求一个JAVA代码,转换成OC 的代码,打印机上用。
- Volley能加载https链接的图片吗?
- 推荐一个PhotoShop功能库的Android版,很好用很不错,分享一下!
- 帮忙写一个查询及显示的功能,谢谢
- python---Memcached
- 做一个app功能,监控智能小车蓄电池电量
- UIAlertController 中的message中的内容如何设置文本居左显示
- poj 3617 Best Cow Line
- ios开发指南 第三版 和 精通ios开发第六版 哪个好
- 如何让百度地图显示出来?(问题出现位置已用!!!表示)
- [SPOJ TBATTLE Thor vs Frost Giants]单调队列+质因子分解
- WebView如何打开pdf文件
- 由于bad_param无法分享到微信
- Android NanoHTTPD作为服务器问题
- cocos2dx游戏开发
- 2017