Twitter集成在iOS应用程序 [英] Twitter integration in iOS app

查看:897
本文介绍了Twitter集成在iOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 ios 应用程序我试图整合twitter与面料和我遵循所有的文档提供的织物
https://docs.fabric.io/ios
我有一个问题,当我构建我的应用程序,然后一些错误

In my ios app I'm trying to integrate twitter with fabric and i followed all the docs provided by fabric https://docs.fabric.io/ios I have a problem when i build my app then some error


1.TwitterCore.framework / Headers / TwitterCore.h:20:9:找不到Cocoa / Cocoa.h档案

1.TwitterCore.framework/Headers/TwitterCore.h:20:9: 'Cocoa/Cocoa.h' file not found

2.TwitterKit.framework / Headers / TwitterKit.h:12:9:无法构建模块'TwitterCore'

2.TwitterKit.framework/Headers/TwitterKit.h:12:9: Could not build module 'TwitterCore'

3.AppDelegate .m:14:9:无法构建模块TwitterKit

3.AppDelegate.m:14:9: Could not build module 'TwitterKit'

所以我无法构建应用程序。

so i am unable to build app.

推荐答案

我有同样的问题,Cocoa / Cocoa.h头是为OS X,因为我们做iOS,我删除了这个标题。打开您的TwitterCore.h

I had the exact same issue, the Cocoa/Cocoa.h header is for OS X, since we are doing iOS, I removed this header. Open your TwitterCore.h

此片段

#if IS_UIKIT_AVAILABLE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif

成为

#if IS_UIKIT_AVAILABLE
#import <UIKit/UIKit.h>
#endif

现在我的项目构建正常了。

And now my project builds just fine.

这篇关于Twitter集成在iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆