使用自定义框架 [英] Using a custom framework
本文介绍了使用自定义框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到的错误:
in / Users / robert / Documents / funWithFrameworks / build / Debug-iphonesimulator / funWithFrameworks.framework / funWithFrameworks无法链接到主可执行文件
Cliff注释:
- 尝试包含框架
- 不想链接
更多细节:
我正在开发一个移动设备...提示,提示使用Xcode,我想让我的
自定义框架,我可以从另一个应用程序包括。到目前为止,我已经做了以下事情:
- 创建一个新项目;
- 转到目标信息 - >打包下,将包装器扩展从应用程序更改为框架
- 转到Action- > new build phase - > copy headers。将标题的角色更改为public
- 从我的应用程序中,我将框架添加到框架组。
不在其手机上使用动态库。私人框架就是这样。
但是,你可以使用静态库。
The error I'm getting:
in /Users/robert/Documents/funWithFrameworks/build/Debug-iphonesimulator/funWithFrameworks.framework/funWithFrameworks, can't link with a main executable
Cliff notes:
- trying to include framework
- doesn't want to link
More detail: I'm developing for a mobile device... hint, hint using Xcode and I'm trying to make my own custom framework which I can include from another application. So far, I've done the following:
- Create a new project; an iPhone OS window based app.
- Go to target info-> under packaging, change the wrapper extension from app to framework
- Go to Action->new build phase -> copy headers. Change roles of headers to 'public'
- From my application, I add the framework to the frameworks group.
解决方案
Apple clearly said that you can not use dynamic libraries on their mobiles. And a private framework is just this.
You can, however, use static libraries.
这篇关于使用自定义框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文