Podfile
platform :ios,'6.0'pod 'AFNetworking'pod 'OHAttributedLabel'
安装两个库后,导入时
#import "AFhttpClIEnt.h"#import "AFJsONRequestoperation.h"#import "UIImageVIEw+AFNetworking.h"
我没有得到任何错误,一切正常
但是当我试图导入时
#import <OHAttributedLabel/OHAttributedLabel.h>#import <OHAttributedLabel/NSAttributedString+Attributes.h>#import <OHAttributedLabel/OHASBasicmarkupParser.h>
我正进入(状态
找不到’OHAttributedLabel / OHAttributedLabel.h’文件
错误
pod安装输出
Resolving dependencIEs of `./Podfile'Updating spec repositorIEsCocoapods 0.17.0.rc7 is available.Resolving dependencIEs for target `default' (iOS 6.0)Downloading dependencIEsUsing AFNetworking (1.1.0)Installing OHAttributedLabel (3.4.1)Generating support files
建议说
Make sure your project is using the Pods.xcconfig. To check this
select your project file,then select it in the second pane again and
open the Info section in the third pane. Under configurations you
should select Pods.xcconfig for each configurations requiring your
installed pods.
我不知道在哪里添加这个.这就是我的配置的样子
编辑
复制pods.xcconfig后
解决方法 看起来你错过了正确的配置集.你的项目信息应该是这样的
总结以上是内存溢出为你收集整理的ios – CocaPods导入AFNetworking但不导入OHAttributedLabel全部内容,希望文章能够帮你解决ios – CocaPods导入AFNetworking但不导入OHAttributedLabel所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)