Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to create XCframework in Xcode 11.
ChannelLet's Build ItDescription 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.
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.
- Channel
- Let's Build It
- Category
- Science & Technology
- Duration
- 21:51
- Published
- March 15, 2020
- Views
- 4,606
- Likes
- 85
Tags
Share
This tutorial in other languages
- FRComment créer XCframework dans Xcode 11.
- ESCómo crear XCframework en Xcode 11.
- PTComo criar XCframework no Xcode 11.
- ITCome creare XCframework in Xcode 11.
- DESo erstellen XCframework in Xcode 11.
- NLHoe te XCframework creëren in Xcode 11.
- RUКак создать XCframework в Xcode 11.
- PLJak stworzyć XCframework w Xcode 11.
- JAXcodeの11でXCframeworkを作成する方法。
- ARكيفية إنشاء XCframework في كسكودي 11.
- HIXcode 11 में XCframework कैसे बनाएं।
- IDCara membuat XCframework di Xcode 11.