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

前端 未结 9 867

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

    Swift 5

    //MARK:- Step 1
    carthage update KeychainAccess --platform iOS
    
    carthage update SDKNAME(like i mention KeychainAccess upper) --platform iOS
    

    if you face an Error like this

    //MARK:- If this error occur
    error: unable to find utility "xcodebuild", not a developer tool or in PATH
    

    Then use Part 1 in Terminal Again

    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    

    and again

    sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    
    0 讨论(0)
  • 2021-01-30 10:47

    From 0.12 version build, checkout, and update take an optional space separated list of dependencies

    For a Cartfile like the following

    github "Alamofire/Alamofire"
    github "ReactiveX/RxSwift"
    

    You could choose to update one dependency

    carthage update Alamofire
    

    or multiple dependencies

    carthage update Alamofire RxSwift
    

    If you need to add flags, add them last:

    carthage update Alamofire --platform iOS
    
    0 讨论(0)
  • 2021-01-30 10:48

    [carthage update flow]

    carthage [update|bootstrap|checkout|build] [dependency1] [dependency2] [--no-use-binaries] [--platform <name>]
    
    //--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/<dependency>/<project>.xcodeproj/xcshareddata/xcschemes/<schema>.xcscheme

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

    0 讨论(0)
提交回复
热议问题