iOS Create a Custom framework in iOS Create Framework in Swift

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

follow these step to creating Custom Framework in Swift-IOS:

  1. Create a new project. In Xcode
  2. Choose iOS/Framework & Library/Cocoa Touch Framework to create a new framework
  3. click next and set the productName
  4. click next and choose directory to create Project there
  5. add code and resources to created project

Framework created successfully

to add created framework to another project, first you should create a workspace
add "target project" and "framework project" to workspace, then :

  1. go to the general tab of target project
  2. drag the "*.framework" file in product folder of framework project to "Embedded Binaries" section
  3. to use in any ViewController or class just import framework at each file


Got any iOS Question?