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

How not to oVirt: A story about rebuilding oVirt without a backup

GC Update — SpicySwap Mainnet

Incorporating Pseudo Code

OOP: Polymorphism in Java

What is Kyve?

Does your code “Spark Joy”?

Geometric and Harmonic Means in Python

27 January 2018 — Emergency Server Maintenance Write-up

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

[Server-Side Swift] Summarize information/articles for iOS with Vapor

Transition images to full screen animated (iOS)

Check Internet Connectivity with NWPathMonitor In Swift

Week #4 — Lagbaja and My First iOS Job Interview