我使用xcode6创建了一个框架,但无法访问它 [英] I created a framework using xcode6 but can't able to access it

查看:120
本文介绍了我使用xcode6创建了一个框架,但无法访问它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建用于测试的asimple框架.

I'm trying to create asimple framework for testing.

我推荐了这个网站,并逐步进行每个操作.

I referred this website and step by step do every one.

但是,当我构建程序时,它总是显示错误"未找到文件".

But, when I Build the program , It is always show the error "File not found".

我已经使用Aggregate Target构建了框架,就像网站上解释的那样.

I have used Aggregate Target to build the framework, like the website explain.

这是我的框架项目文件代码(头文件).

it is my framework project file code(header file).

这是我的框架项目文件代码(实现文件).

it is my framework project file code(implement file).

这是我的框架设置照片.

it is my framework setting photo.

使用框架文件代码是我的测试.

it is my test to use the framework file code.

使用框架项目设置是我的测试.

it is my test to use the framework project setting.

有人知道我的步骤有什么问题吗?

Does anyone know what's wrong in my steps?

非常感谢.

我使用了XCode 6.1.1版本的IDE.

I used XCode 6.1.1 version IDE.

//============================ @凯文:

//============================ @Kevin:

谢谢.但是..

如果我更改导入文件.它会在下面显示错误:

If I change the import file. it will show error below:

推荐答案

在导入中不包含".framework"部分.

Don't include the ".framework" part in the import.

#import "MyFramework/MyFramework.h"

这篇关于我使用xcode6创建了一个框架,但无法访问它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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