ios - cocoapods podspec 引用其他库的问题
阿神
阿神 2017-04-17 12:01:06
[iOS讨论组]

想把手头的一个库,使用cocoapods来管理,于是去写podspec,写好后,用pod spec lint检查错误,报了几个调用error,原因是调用了几个其他pod 中的函数,心想应该没事,因为下面已经在dependency段中加入了所需要库的引用,所以就没管。

接着在主项目中引用,然后就编译不过了,因为那几个依赖库没有被添进去。

我的podspec:

Pod::Spec.new do |s|
s.name = "xxxxxxx"
s.version = "0.0.1"
s.summary = "A short description of xxxxxxxx."
s.homepage = "xxxxxx"
s.license = 'MIT'
s.author = { "shiweifu" => "shiweifu@gmail.com" }
s.platform = :ios, '7.0'
s.source = { :git => "git@xxxxx.com:weifu/iOS/xxxxxx.git", :tag => "0.1" }
s.source_files = 'xxxxxx/Classes/.{h,m}'
s.exclude_files = 'ViewController.{h,m,xib}', '
.storyboard'
s.resources = "Resources"
s.requires_arc = true

s.ios.deployment_target = '7.0'

s.dependency 'UIView+Helpers'
s.dependency 'UIImage-Resize'
s.dependency 'UIView+Helpers'
s.dependency 'GPUImage'
s.dependency 'ObjectiveSugar'
s.dependency 'NYXImagesKit'
end

请问这个podspec哪里写的不对?

阿神
阿神

闭关修行中......

全部回复(2)
巴扎黑

贴一下错误看看

天蓬老师

UP主,我得到如下错误
-> TCSBLL (0.2.0)

  • ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use --verbose for more information.

  • NOTE | xcodebuild: /Users/huanglexian/Desktop/TCSBLL/Pod/Classes/TCSBLL/TCSBLL.m:10:10: fatal error: 'TCSDAL.h' file not found
    也同样是一个未公开库引入另一个未公开库

这个问题,令好好苦恼,如果UP主知道如何解决,我想请UP主解答一下:

QQ:527108411

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号