假设我做了以下事情:
从这里,我可以构建框架的调试版本(在 Debug-iphoneos 文件夹内),但我不知道如何构建框架的发布版本(在 Release-iphoneos 内).我认为存档可能会这样做,但事实并非如此.请指点?
From here, I can build a debug build of the framework (inside the Debug-iphoneos folder), but I cannot figure out how to build the release version of the framework (inside Release-iphoneos). I thought Archive might do it, but it doesn't. Pointers please?
要获得发布版本,您需要更改方案设置:
To get a release build, you need to change your scheme settings:
或者,为发布构建创建一个新方案.
Alternatively, create a new scheme for release builds.
确保您已选择设备.不是模拟器.
Ensure you have a device selected. Not the simulator.
构建您的项目,您应该会看到它已添加到此位置:(单击箭头在查找器中导航)
Build your project and you should see that it gets added to this location: (Click the arrow to navigate there in finder)
向下钻取后,您应该能够找到包含您的发布框架的发布文件夹.
And after drilling down, you should be able to find the release folder with your release framework inside.
这篇关于如何在 Xcode 中构建 iOS 框架的发布版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!