How to Make a Universal Framework in iOS | XCFramework | Swift

Step 1:

Choosing Framework option

Step 2:

LogFile.swift

Step 3:

Step 4:

Step: 5

xcodebuild archive \
-scheme UniversalFramework \
-configuration Release \
-destination 'generic/platform=iOS Simulator' \
-archivePath './build/UniversalFramework.framework-iphonesimulator.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive \
-scheme UniversalFramework \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath './build/UniversalFramework.framework-iphoneos.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework \
-framework './build/UniversalFramework.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/UniversalFramework.framework' \
-framework './build/UniversalFramework.framework-iphoneos.xcarchive/Products/Library/Frameworks/UniversalFramework.framework' \
-output './build/UniversalFramework.xcframework'

Final Step:

Drag and Drop Universal Framework

--

--

--

iOS Developer — Connect with me www.linkedin.com/in/Muhammad-Abubakar-iOS

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Distributed Load Testing Using Argo in Kubernetes ( Distro )

The Distributed load testing via Argo in Kubernetes — Distro

Create your own Youtube Video & Audio Downloader

Simple Encryption Library in Android App

How to win a hackathon

Implement multi tenancy oidc and hibernate on quarkus

Night Owl Weekly Update [23/03/2022]

Hackthebox Devel Writeup without Metasploit #ftp #privesc #oscp

Utilizing and Installing WSL 2 as a Virtualization Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abu Bäkr

Abu Bäkr

iOS Developer — Connect with me www.linkedin.com/in/Muhammad-Abubakar-iOS

More from Medium

5 Epiphanies from My First [Digital] WWDC

Method Swizzling in Swift

Method Dispatch

Copiable in Swift — Clean Approach

Abstract vector created by vectorjuice — www.freepik.com

iOS CI&CD tips pt 3