如何在 Xcode 中存档/导出框架?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34271874/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to archive/export Framework in Xcode?
提问by 72A12F4E
I have a project with a framework target, but when I archive, the framework does not show up in organizer. I checked apple for documentation, but only found reference for static libraries.
我有一个带有框架目标的项目,但是当我归档时,该框架没有出现在组织者中。我检查了苹果的文档,但只找到了静态库的参考。
Has anyone experienced this before?
有谁之前经历过这个吗?
采纳答案by kuzdu
Go into your framework and build.
进入你的框架并构建。
cmd+b
cmd+b
You will find in your products YOUR_FRAMEWORK.framework
您会在您的产品中找到 YOUR_FRAMEWORK.framework
Right click on "YourLibrary.framework" -> Show in Finder
右键单击“YourLibrary.framework”-> 在 Finder 中显示
Now you can share/import your library.
现在您可以共享/导入您的库。
Attention: Don't link/reference to this path because the framework is stored in Derived Data.
注意:不要链接/引用此路径,因为框架存储在Derived Data 中。
回答by FinderؼTiwk
The only thing you should do is build the target,then show Products in finder ,you will see it.
您唯一应该做的就是构建目标,然后在 finder 中显示 Products,您将看到它。