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;)
FYR, this is the previous script to build and combine simulator and device’s framework file.
FYR,这是构建和组合模拟器和设备的框架文件的先前脚本。
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