HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to create XCframework in Xcode 11.

4,606 views March 15, 2020 21:51

Watch on YouTube
ChannelLet's Build It

Description from the creator

Here are the scripts that I have used to create .xcframework on the terminal -

xcodebuild archive -scheme PROJECTNAME_HERE -destination="iOS" -archivePath /tmp/xcf/ios.xcarchive -derivedDataPath /tmp/iphoneos -sdk iphoneos SKIP_INSTALL=NO


xcodebuild archive -scheme PROJECTNAME_HERE -destination="iOS Simulator" -archivePath /tmp/xcf/iossimulator.xcarchive -derivedDataPath /tmp/iphoneos -sdk iphonesimulator SKIP_INSTALL=NO


xcodebuild -create-xcframework -framework /tmp/xcf/ios.xcarchive/Products/Library/Frameworks/PROJECTNAME_HERE.framework -framework /tmp/xcf/iossimulator.xcarchive/Products/Library/Frameworks/PROJECTNAME_HERE.framework -output FRAMEWORK_NAME.xcframework

Don't forget to change your project name in the scripts.


I have used Xcode 11.3 while making this video. You can use any Xcode version above 11.0. If you found any issue while creating this, just let me know in the comment section below.

In the next video, I will show you how to publish this Xcframework or any other framework to Cocoapods, so it can be consumed by anyone using your pod name. So stay tuned with my channel, and if you haven't subscribed it Please do Subscribe, Like, Share and press the bell icon so you never miss any video from my channel.

About this tutorial

Let's Build It published this 21:51 video tutorial on March 15, 2020. It has been watched 4,606 times on YouTube.

Duration
21:51
Published
March 15, 2020
Views
4,606
Likes
85

Tags

Share

This tutorial in other languages