如何从外部文件夹添加xcode框架? [英] How to add xcode framework from external folder?

查看:93
本文介绍了如何从外部文件夹添加xcode框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个不同的应用程序:一个用于iPhone,另一个用于iPad,它们没有使用工作区链接。因此,将它们视为两个不同的未链接文件夹。

We have two different apps : one for iPhone, and one for iPad, which are not linked using workspace. So, think of them as being in two different unlinked folders.

现在,我已经创建了一个iOS框架( Cocoa Touch Framework )想要将它包含在iPhone和iPad中。因此,根据我遇到的教程,我在iOS App项目中创建了对框架的Xcode-Project文件的引用,但是当我按照下一步即添加目标依赖项时,此框架未显示。

Now, I have created an iOS framework (Cocoa Touch Framework) which I want to include it in both iPhone and iPad. So, as per tutorials I encountered, I created a reference to the Xcode-Project file of framework in the iOS App project, but when I follow the next step i.e. to "Add Target Dependencies", this framework is not shown.

我不知道如何继续。我希望在不创建Framework的更多副本的情况下将框架包含在内。

I don't know how to proceed. I want to include the framework to both without creating further copies of Framework.

在此先感谢。

推荐答案

Target> Project> Build Phase> Link Binary with Libraries> Add items(+)> Add Others> Path to external framework。

Target>Project>Build Phase>Link Binary with Libraries>Add items(+)>Add Others>Path to external framework.

这篇关于如何从外部文件夹添加xcode框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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