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
  • НаукаНаука

Комментарии • 83

  • @rebeloper
    @rebeloper  3 года назад +2

    Do you have any custom Swift Frameworks?

  • @ivangomezvip
    @ivangomezvip 3 года назад

    Thank you!! Great explanation

    • @rebeloper
      @rebeloper  3 года назад

      You are welcome! BTW if you do like SwiftUI check out everything you have to know about SwiftUI Lists: ruclips.net/video/EyaUVMD2uCk/видео.html

  • @arindamsantra1727
    @arindamsantra1727 3 года назад

    Thank you so much

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @RhezaPahlevi
    @RhezaPahlevi 3 года назад

    Thank you so much for this, got a task to do framework today

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @prashantborade3303
    @prashantborade3303 3 года назад

    Thank you so much..

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @PaWLO1501
    @PaWLO1501 3 года назад

    Great tutorial!

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @samargupta7355
    @samargupta7355 3 года назад

    very nice. It saved my lot of time.

    • @rebeloper
      @rebeloper  3 года назад

      Great to hear! BTW if you liked this video take a look at *Swift Extensions* ruclips.net/video/Gi47Oi8gKJE/видео.html

  • @prashantborade3303
    @prashantborade3303 3 года назад

    Very nice .

  • @devhookdeveloper6357
    @devhookdeveloper6357 3 года назад

    Good explanation

    • @rebeloper
      @rebeloper  3 года назад

      Thank you. BTW check out the top 10 apps I use on my Mac: ruclips.net/video/TqljK2Uyf2U/видео.html

  • @VishalKalola
    @VishalKalola 3 года назад

    Very good teaching method.. easy to understand..

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @Jo2Gu2So
    @Jo2Gu2So 2 года назад

    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

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @shinewanna3959
    @shinewanna3959 Год назад

    Appreciate it sir

    • @shinewanna3959
      @shinewanna3959 Год назад

      Universal script seems not working now, I'm use Xcode 13.4.1 :')

    • @rebeloper
      @rebeloper  Год назад +1

      Please use the updated one here: ruclips.net/video/2k4mMdLfIKY/видео.html
      Best iOS Development Tools - Summer Sale 👇
      ruclips.net/video/HzGgXjyF8ak/видео.html

  • @shawnfrank5303
    @shawnfrank5303 3 года назад +1

    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 :)

    • @rebeloper
      @rebeloper  3 года назад

      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

    • @henrychukwu1080
      @henrychukwu1080 2 года назад

      @@rebeloper I thought you can share frameworks via cocoapod

  • @ThwartedWaffles
    @ThwartedWaffles 2 года назад

    yes

    • @rebeloper
      @rebeloper  2 года назад

      If you liked this one you will love my latest video on Timers: ruclips.net/video/oo-sW_Ds968/видео.html

  • @lyboung8749
    @lyboung8749 2 года назад +1

    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

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @Ak-gm8sc
    @Ak-gm8sc 3 года назад

    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?

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @kirtisharma-pb4pu
    @kirtisharma-pb4pu 3 года назад

    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?

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @shoebshaikh8336
    @shoebshaikh8336 3 года назад

    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

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @cristhofergomez1084
    @cristhofergomez1084 2 года назад

    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

    • @rebeloper
      @rebeloper  2 года назад +1

      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

  • @tzuuyaolee9402
    @tzuuyaolee9402 Месяц назад

    Hello, can u briefly explain “do not embed” vs “embed and sign”

    • @rebeloper
      @rebeloper  Месяц назад +1

      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

  • @_X2b4_
    @_X2b4_ 2 года назад

    What is the best current practice for selling binary frameworks that are not open sourced?

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @akshaykumar-qj2kx
    @akshaykumar-qj2kx 3 года назад

    nice tutorial. alex my app is crashed on when run on simulator..dyld: lazy symbol binding failed: can't resolve symbol

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @eugenekomeristiy616
    @eugenekomeristiy616 3 года назад

    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."

    • @eugenekomeristiy616
      @eugenekomeristiy616 3 года назад +1

      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

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @Igunther
    @Igunther 2 года назад

    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.

    • @rebeloper
      @rebeloper  2 года назад +1

      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

    • @Igunther
      @Igunther 2 года назад

      @@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 :-)

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @travelfeaturedyournexttrav5368
    @travelfeaturedyournexttrav5368 3 года назад

    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

    • @rebeloper
      @rebeloper  3 года назад

      Looks like a job for a mentoring: rebeloper.com/mentoring

  • @makeinpro
    @makeinpro 2 года назад

    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

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @swiftdeveloper7362
    @swiftdeveloper7362 3 года назад

    Hi , how an i add podfiles into my framework i tried but getting lot of different types of error

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @exploreevenmore
    @exploreevenmore 2 года назад

    Hi rebel, I am facing issue in Custom framework. Could you please help me on this

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @anmolmaheshwari8860
    @anmolmaheshwari8860 Год назад

    Can you please provide script for universal? Actually not able to find inside github repo

    • @rebeloper
      @rebeloper  Год назад

      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

  • @MohammedAli-fc2uu
    @MohammedAli-fc2uu 3 года назад

    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

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @tinguyen_dev
    @tinguyen_dev 2 года назад

    Can i add font to my framework, i have tried it but, i can't

    • @rebeloper
      @rebeloper  2 года назад

      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

  • @Ipadstands
    @Ipadstands Год назад

    Thanks, You lost me when you ran the bash script to create the universal framework. But all in all a good video

    • @rebeloper
      @rebeloper  Год назад

      Glad it helped! Next check out 6 State Mistakes Every Junior SwiftUI Developer Makes 👇
      ruclips.net/video/9-2wZs2B13w/видео.html

  • @hieulehong4694
    @hieulehong4694 Год назад

    Framework after build only support real device and don't support simulator. Could you please help me ?

    • @rebeloper
      @rebeloper  Год назад

      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

    • @hieulehong4694
      @hieulehong4694 Год назад

      ​@@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

    • @rebeloper
      @rebeloper  Год назад

      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

    • @hieulehong4694
      @hieulehong4694 Год назад

      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"

  • @HashimKhan-io6rm
    @HashimKhan-io6rm 2 года назад

    TOP SECRET APP with 8579 Views xD

    • @rebeloper
      @rebeloper  2 года назад +1

      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

  • @followerOfJesus723
    @followerOfJesus723 3 года назад

    I find all of his explanations to be just too convoluted ...

    • @rebeloper
      @rebeloper  3 года назад

      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

  • @FessNiklas1987
    @FessNiklas1987 4 месяца назад

    ну так в принципе и выглядят ios разрабы в жизни

    • @rebeloper
      @rebeloper  4 месяца назад

      Yep :)
      Next escape the GeometryReader nightmare 👇
      ruclips.net/video/zf-Qnx4laT4/видео.html&ab_channel=Rebeloper-RebelDeveloper

  • @abdulkarimdars6484
    @abdulkarimdars6484 4 месяца назад

    remained confusing.

    • @rebeloper
      @rebeloper  4 месяца назад

      Sorry to hear that.
      Shocking: AI Creates Complete iOS App 👇
      ruclips.net/video/v2lq4B0VMFk/видео.html