如何在Xcode中制作XCFramework / Fat Framework

In the past, we, as iOS framework authors, used to build Fat .Framework file to distribute.

过去,我们作为iOS框架的作者,通常用于构建Fat .Framework文件进行分发。

After WWDC2019, we can now build the Framework file with .xcframework extension using this script:

在WWDC2019之后,我们现在可以使用以下脚本构建扩展名为.xcframework的Framework文件:

Make a new target “Aggregate” on the Cross-Platform tab, and put the above script in the Build Phrase by adding a Run Script. Then you can start archiving you XCFramework ;)

在“跨平台”选项卡上创建一个新的目标“聚合”,然后通过添加运行脚本将以上脚本放入“构建短语”中。 然后,您可以开始存档XCFramework;)

Image for post
“Aggregate” target on the Cross-Platform tab
跨平台标签上的“汇总”目标
Image for post
Run Script on the new target
在新目标上运行脚本

FYR, this is the previous script to build and combine simulator and device’s framework file.

FYR,这是构建和组合模拟器和设备的框架文件的先前脚本。

Legacy script for building Fat Framework
用于构建Fat Framework的旧脚本

That’s it.

而已。

Happy coding and I wish you a great day ;)

祝您编程愉快,祝您生活愉快;)

Feel free to find me on Twitter https://twitter.com/rick3817

随时在Twitter上找到我https://twitter.com/rick3817

#xcode #archive #build #iOS #wwdc #wwdc2019 #framework #fatframework #library #dynamicframework #swift

#xcode #archive #build #iOS #wwdc#wwdc2019 #framework #fatframework#库#dynamicframework #swift

翻译自: https://medium.com/@rick38yip/how-to-make-xcframework-fat-framework-in-xcode-da83a8450c4b

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值