How to make XCFramework / Fat Framework in Xcode

1 min readJul 8, 2020

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 ;)

“Aggregate” target on the Cross-Platform tab
Run Script on the new target

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

Legacy script for building Fat Framework

That’s it.

Happy coding and I wish you a great day ;)

Feel free to find me on Twitter

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




Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter