In the past, we, as iOS framework authors, used to build Fat .Framework file to distribute.
After WWDC2019, we can now build the Framework file with .xcframework extension using this script:
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 ;)
FYR, this is the previous script to build and combine simulator and device’s framework file.
That’s it.
Happy coding and I wish you a great day ;)
Feel free to find me on Twitter https://twitter.com/rick3817
#xcode #archive #build #iOS #wwdc #wwdc2019 #framework #fatframework #library #dynamicframework #swift