找不到目标c social/social.h [英] objective c social/social.h not found

查看:77
本文介绍了找不到目标c social/social.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//
//  Social.h
//  Social
//
//  Copyright (c) 2012 Apple Inc. All rights reserved.
//

#import <Social/SLServiceTypes.h>
#import <Social/SLRequest.h>
#if TARGET_OS_IPHONE
#import <Social/SLComposeViewController.h>
#endif

我试图在Xcode 5中为iOS-6编译一个简单的应用程序,并调用apple提供的基本Social框架.我收到SLComposeViewController错误-找不到文件.这是一个新的错误,刚刚决定在今天下午的构建时间出现.我拥有其余的社会框架.有什么想法吗?

I am trying to compile a simple app for iOS-6 in Xcode 5, and calling the basic Social framework provided by apple. I am getting an error of SLComposeViewController - file not found. This is a new error that just decided to show up at build time this afternoon. I have the rest of the social framework. Any ideas?

推荐答案

这只是一个猜测,但是由于它是apple提供的框架,因此您需要先在该框架中链接,然后再导入它.

This is just a guess, but since its a framework provided by apple, you need to Link in the framework first, then import it.

因此,通过在文件管理器视图中单击项目,然后单击构建阶段"选项卡,进入构建阶段". 输入您的权限后,单击带有库的链接二进制文件,然后单击加号按钮

So goto the Build Phases by clicking on your project in the file manager view, then clicking the Build Phases tab. After youre in, click on link binary with libraries and hit the plus button

然后搜索社交"

这只是我的头上的问题,我现在无法使用Mac,但这应该是解决方案

This is just off the top of my head, i cant get on my mac now, but it should be the solution

这篇关于找不到目标c social/social.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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