如何在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:19:06  来源:igfitidea点击:

How to archive/export Framework in Xcode?

iosxcodeframeworks

提问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?

有谁之前经历过这个吗?

Here are screenshots of my current scheme settings Build SchemeRelease Scheme

这是我当前方案设置的屏幕截图 构建方案发布方案

采纳答案by kuzdu

Go into your framework and build.

进入你的框架并构建。

cmd+b

cmd+b

You will find in your products YOUR_FRAMEWORK.framework

您会在您的产品中找到 YOUR_FRAMEWORK.framework

enter image description here

在此处输入图片说明

Right click on "YourLibrary.framework" -> Show in Finder

右键单击“YourLibrary.framework”-> 在 Finder 中显示

enter image description here

在此处输入图片说明

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,您将看到它。