How to update just one library from the Cartfile with Carthage?

前端 未结 9 885

My Cartfile has many libraries. When I do carthage update it goes through all the libraries. That can take very long time.

Is there a way to update just a s

9条回答
  •  庸人自扰
    2021-01-30 10:48

    [carthage update flow]

    carthage [update|bootstrap|checkout|build] [dependency1] [dependency2] [--no-use-binaries] [--platform ]
    
    //--no-use-binaries - does not use prebuild binary and use source code
    //--platform - specify a platform
    

    The longest phase is a build step[xcodebuild] because:

    1. fat binary is built using lipo[About]
    2. Carthage builds all shared frameworks schemes of a project. If you know which exactly schema which you need you can:

      • Leave specific schemes at xcschemes folder .../Carthage/Checkouts//.xcodeproj/xcshareddata/xcschemes/.xcscheme

      • Open built project from Carthage/Checkouts folder -> Manage Schemes... -> leave specific schemes

提交回复
热议问题