Swift Framework - Create a Custom Framework in iOS
HTML-код
- Опубликовано: 1 авг 2024
- Swift Framework - Create a Custom Framework in iOS
Escape Tutorial Hell 👉 rebeloper.com/mentoring
UPDATED video here: • Creating a Custom Fram...
Do you want to create your ios framework, especially Swift Framework? Want to know what is a framework and how to make a framework? In this video, I teach you how to create framework in swift! I will help you to understand ios framework architecture, swift framework example and popular ios frameworks. In this swift framework tutorial I will talk about swift access control, build framework for simulator and device, and framework development process. I will guide you step by step how to create a business framework, how to add framework in xcode and uikit framework ios in general.
If your goal is to learn everything about frameworks, this ios framework tutorial is perfect for you! Stay tuned and watch this ios tutorial swift by Rebeloper!
Don’t forget to download the resources:
→ store.rebeloper.com/youtube-c...
**VIDEOS I RECOMMEND**
→ PLAYLIST: Core Data iOS in 2020
• CORE DATA SWIFT TUTORI...
DO YOU WANT TO BE MY APPRENTICE?
HIRE ME → rebeloper.com/hire-us/
__________
Say hi on social:
Get in touch:
→ support@rebeloper.com
SUBSCRIBE to weekly tips & tutorials for building iOS apps!
→ ruclips.net/user/rebeloper?su...
Github: github.com/rebeloper/
Hire me: rebeloper.com/hire-us/
LinkedIn: / rebeloper
My Blog: rebeloper.com/blog
Follow me on Instagram: / rebeloper
_____
• Swift Framework - Crea...
#rebeloper
CHAPTERS:
_____
00:00 INTRO
00:21 WHAT WE ARE GOING TO BUILD
01:43 CREATE A CUSTOM FRAMEWORK
04:13 DEMO PROJECT TO TEST FRAMEWORK
07:10 USE THE FRAMEWORK IN EXTERNAL PROJECT
08:47 CREATE THE FRAMEWORK FOR A DEVICE ALSO
11:09 CREATING UNIVERSAL FRAMEWORKS
15:14 WHAT TO DO NEXT - Наука
Do you have any custom Swift Frameworks?
Thank you!! Great explanation
You are welcome! BTW if you do like SwiftUI check out everything you have to know about SwiftUI Lists: ruclips.net/video/EyaUVMD2uCk/видео.html
Thank you so much
You're most welcome. If you liked this video you may be interested in my lates one: UITableView with Custom Cell ruclips.net/video/Pk25DqgfNhU/видео.html
Thank you so much for this, got a task to do framework today
Great to hear! If you liked this video you may be interested in my lates one: UITableView with Custom Cell ruclips.net/video/Pk25DqgfNhU/видео.html
Thank you so much..
You're most welcome! If you liked this video you may be interested in my lates one: UITableView with Custom Cell ruclips.net/video/Pk25DqgfNhU/видео.html
Great tutorial!
Glad you think so! If you did like this video I think you will love my lates Live Stream on Advanced SwiftUI TextFields: ruclips.net/video/N8eTuA_5T6Q/видео.html
very nice. It saved my lot of time.
Great to hear! BTW if you liked this video take a look at *Swift Extensions* ruclips.net/video/Gi47Oi8gKJE/видео.html
Very nice .
Thank you! Cheers!
Good explanation
Thank you. BTW check out the top 10 apps I use on my Mac: ruclips.net/video/TqljK2Uyf2U/видео.html
Very good teaching method.. easy to understand..
Glad to hear that! BTW if you do like SwiftUI check out everything you have to know about SwiftUI Lists: ruclips.net/video/EyaUVMD2uCk/видео.html
I am subscribing right now! Having a lot of issues with frameworks while updating the authorized version of Xcode(going to 13.2.1) in my work environment
Welcome to the Rebeloper Community! BTW if you are building a portfolio you must build these 3 types of apps: ruclips.net/video/3Ifju4c4l0w/видео.html
Appreciate it sir
Universal script seems not working now, I'm use Xcode 13.4.1 :')
Please use the updated one here: ruclips.net/video/2k4mMdLfIKY/видео.html
Best iOS Development Tools - Summer Sale 👇
ruclips.net/video/HzGgXjyF8ak/видео.html
Thank you, this was a great tutorial and was very easy to follow thanks to a very smooth explanation. I had a few questions regarding this because I also watched your cocoa pods video and here are my questions:
1 - Let's say I want to develop a framework which hides the implementation, can I deploy my framework using cocoapods as well ?
2 - Can I include other pods and frameworks and package it into my framework ?
3 - How would I manage this with source control ? For example, I would have one version of the framework for public to access and download and then there is the actual source code of the framework which I would update so how does this work with source control ?
Thanks again :)
As I know it you cannot have a Framework as a Cocoapod. I'm using SPM now. BTW take a look at my latest video: SwiftUI Animation ruclips.net/video/z4xcp7QiUrE/видео.html
@@rebeloper I thought you can share frameworks via cocoapod
yes
If you liked this one you will love my latest video on Timers: ruclips.net/video/oo-sW_Ds968/видео.html
Hello Alex,
I love your video.
Such a great explanation.
But I wanna embed another third-party framework inside my custom framework, like googleMap or else. How can I achieve that
Hmm, I haven't done that myself.
If you enjoyed this video make sure to check out my newest tutorial about iOS15 availability: ruclips.net/video/u1SMCxmYMvE/видео.html
Thank you so much Alex.
I want you to ask a question about that.
I created a framework also, and I added some external libraries in it like Sqlite.swift, SwiftyRSA. However, when create a universal xcframework, and added a project, it can not resolve this libraries. Hoıw should I add external libraries to my framework?
I'm not sure. Haven't done that before. If you liked this video you may be interested in my lates one: UITableView with Custom Cell ruclips.net/video/Pk25DqgfNhU/видео.html
Thankyou !! for this but i have one more question as I have created my framework that was built with Xcode 12.4 using aggregates. I have also enabled Build Libraries for Distribution in build settings of my framework and also add SKIP_INSTALL=NO in run script.
I am trying to use that framework in Xcode 12.0.1 in a new project . I have successfully added that framework, but when I write import FrameworkName in ViewController, I get the following error:
Failed to build module the compiler that produced it, 'Apple Swift version 5.3.2, may have used features that aren't supported by this compiler, 'Apple Swift version 5.3
Is it something we can fix without switching to a different Swift version?
I think you have to switch. BTW do you like the Previews in SwiftUI? Find out everything you have to know about Previews here: ruclips.net/video/rxfter_wMXI/видео.html
Sir good tutorial, i want to create a delegate protocol methods in framework and want to use that in main app. can u give me an idea. (its like sending a values from framework to Main app).
please hep
me to
do
that
Yes, sure. I can help you in a mentoring session: rebeloper.com/mentoring
BTW let me show you how to write scalable code: ruclips.net/video/kDrCpVRUC6M/видео.html
Hi Rebeloper , Thanks, I have a question, It´s possible include in my swift framework another framework in objective C?, I need to use the objective C framework in my swift framework
A framework cannot contain another framework. If you liked this tutorial you will love my newest one: This Design Principle Changes EVERYTHING | Liskov Substitution Principle ruclips.net/video/IVj5EcLQvjw/видео.html
Hello, can u briefly explain “do not embed” vs “embed and sign”
Embed will use the framework in the current build. Sign will sign the project with your apple id
SwiftUI In-app Purchases Made Easy: Store Kit Pro 👇
ruclips.net/video/X-eapD-4wTg/видео.html&ab_channel=Rebeloper-RebelDeveloper
What is the best current practice for selling binary frameworks that are not open sourced?
Use your own site, like: store.rebeloper.com
If you liked this one you will love my latest video on Timers: ruclips.net/video/oo-sW_Ds968/видео.html
nice tutorial. alex my app is crashed on when run on simulator..dyld: lazy symbol binding failed: can't resolve symbol
I cannot solve the issue without more info. Let's fix it in a mentoring session: rebeloper.com/mentoring
BTW check out the top 10 apps I use on my Mac: ruclips.net/video/TqljK2Uyf2U/видео.html
Hi
Thank you. Great course.
I use swiftUI. Everything works fine in preview, but there is an error when building: "Building for iOS, but the linked and embedded framework was built for iOS + iOS Simulator."
I solved this problem
Perhaps someone will come in handy
For X-code 12.13 set Validate Workspace to Yes in the Build Settings tab
Thanks for sharing your solution. BTW if you like this video I'm sure you will love my latest tutorial about Floating Buttons in SwiftUI: ruclips.net/video/E3ks0l0Qbkc/видео.html
Thank you for sharing! However, when I follow your tutorial on XCode 13.1 the framework project does not include a "Products" folder. Do you know if Apple have changed this? As a result, I am not able to include the framework into another project.
I'm in the process of updating this video. subscribe to get notified when it comes out. BTW if you liked this video tutorial consider checking out my newest one about Fileprivate vs Private: ruclips.net/video/Y5PF7Dt-wh0/видео.html
@@rebeloper Hi, thanks for the update and I am looking forward to the updated video! I have got a framework up and running with XCode 13.1, the problem or rather "gotcha" was that I had to "check" the "Copy files if needed" when adding the framework to the consuming app. What I have not succeeded doing, is adding the framework without adding the project. So, if you have a solution for adding the framework under Targets, without adding the project, then that would be a great addition to your new tutorial. Also, I spent a lot of time adding fonts and colour resources to the framework and discovered that when using the framework, the runtime will look for the resources in the main bundle. Got this running also, but this could also be a great thing to show off in your next vid. Thanks for your great channel, off course subscribed :-)
Noted on the resources.
Want to know what's the difference between an amateur and a pro developer? Find out in my newest video: ruclips.net/video/WYx2hMiV-DU/видео.html
good afternoon sorry but i have one problem with my code in my application.
the question is i crate a tableview end i create the extension for convert in pdf end print it, but when i print it is come out like e column and not cover all page.
can you help me?
thank you so much
Looks like a job for a mentoring: rebeloper.com/mentoring
how to include another depedency like mlkit steppher view inside framework, how i can build the universal framework with that another pod, i want to make private framework , but when i wanna create a zip on my repoisotry, my framework cannot build because the framework still no such module
This is quite complicated to do. I can teach you how to do it on a mentoring session: rebeloper.com/mentoring
Also, learn how to sell your apps here: ruclips.net/video/EyzIhGG0Y0Q/видео.html
Hi , how an i add podfiles into my framework i tried but getting lot of different types of error
You cannot ad pod files into a framework. BTW do you like CoreData? Check out Core Data in SwiftUI: ruclips.net/video/_GJlFk-Hhz8/видео.html
Hi rebel, I am facing issue in Custom framework. Could you please help me on this
Yes I can. Book your call here: rebeloper.com/mentoring
If you enjoyed this video you will love Animated Splash Screen iOS: ruclips.net/video/mMl6t6gpB1o/видео.html
Can you please provide script for universal? Actually not able to find inside github repo
All the resources can be found here: store.rebeloper.com/youtube-channel-resources
Next check out the World's Shortest SwiftUI Course 👉 ruclips.net/video/zJo6KbeM9Jk/видео.html&ab_channel=Rebeloper-RebelDeveloper
Welcome sir
I have problem with this script don’t work on Xcode 12.4 it imports empty folder can you give me new script ,please
I'm not that good with scrips, you will have to tweak it yourself. BTW let me show you how to write scalable code: ruclips.net/video/kDrCpVRUC6M/видео.html
Can i add font to my framework, i have tried it but, i can't
I haven't tried it myself, so I cannot tell at this moment. Let me know if you figured it out. BTW if you enjoyed this tutorial make sure you take a look at my latest video about Progress Indicator Examples: ruclips.net/video/nHr2hh-KgTk/видео.html
Thanks, You lost me when you ran the bash script to create the universal framework. But all in all a good video
Glad it helped! Next check out 6 State Mistakes Every Junior SwiftUI Developer Makes 👇
ruclips.net/video/9-2wZs2B13w/видео.html
Framework after build only support real device and don't support simulator. Could you please help me ?
Take a look at this new video: ruclips.net/video/2k4mMdLfIKY/видео.html
Next watch How Xcode 15's 6 Preview Features Will Revolutionize Your Development 👇
ruclips.net/video/m07mlq2v6Vs/видео.html&ab_channel=Rebeloper-RebelDeveloper
@@rebeloper New video is build xcframework. But we don't extension class in class of xcframework . Have an other case ?
My errros when I imported framework to project
Could not find module 'VDSContactSDK' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios, at: /Users/os_rikkei_hieulh/Desktop/Demo/VDSContactSDK.framework/Modules/VDSContactSDK.swiftmodule
I don't really understand your error. Could you elaborate or book a session so I may take a look at your code: rebeloper.com/mentoring
Next you might want to downgrade from iOS17 beta to iOS16: ruclips.net/video/fhPNYEOGamo/видео.html&ab_channel=Rebeloper-RebelDeveloper
I meant is Framework don't run with simulator. If choose simulator, Xcode notice this erros "Could not find module 'VDSContactSDK' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios, at: /Users/os_rikkei_hieulh/Desktop/Demo/VDSContactSDK.framework/Modules/VDSContactSDK.swiftmodule"
TOP SECRET APP with 8579 Views xD
LOL :) BTW if you liked this video you will love my video on why not to use Alamofire and what to use instead. Check it out here: ruclips.net/video/RM5uKTBr20c/видео.html
I find all of his explanations to be just too convoluted ...
Thanks for the input. Probably there are more simpler ways now :) If you liked this video you will absolutely love my newest one: Don't use MVVM ruclips.net/video/SOA0IT7sxvc/видео.html
ну так в принципе и выглядят ios разрабы в жизни
Yep :)
Next escape the GeometryReader nightmare 👇
ruclips.net/video/zf-Qnx4laT4/видео.html&ab_channel=Rebeloper-RebelDeveloper
remained confusing.
Sorry to hear that.
Shocking: AI Creates Complete iOS App 👇
ruclips.net/video/v2lq4B0VMFk/видео.html