1 Reply
      Latest reply on Jan 29, 2017 4:27 PM by eskimo
      vin25 Level 1 Level 1 (0 points)

        In the WWDC 2016 video to Optimizie App Startup Time, it was suggested that you can merge frameworks to speed up start up times.


        Our iOS app has around 20 frameworks which a mix of Obj-C and Swift frameworks and the app start up time is around 3.5s. We need to bring it down significantly.


        I would like to know how can one merge dylibs. Say I have two 3rd party swift frameworks like Alamofire and SwiftyJSON. How would I merge these two swift frameworks and use it in my project?

        • Re: Merge dylibs to speed up app startup time
          eskimo Apple Staff Apple Staff (11,845 points)

          I would like to know how can one merge dylibs.

          There isn’t a way to merge dynamic libraries once they’re built.  To produce a merged library you need to add the source for both libraries to a single dynamic library target.  This can be quite tricky depending on how the complex the built system is for each library.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"