Carthage로 Cartfile에서 하나의 라이브러리 만 업데이트하는 방법은 무엇입니까?
내 Cartfile에는 많은 라이브러리가 있습니다. 내가 할 때 carthage update
모든 도서관을 통과합니다. 시간이 오래 걸릴 수 있습니다.
카르타고로 단일 라이브러리 만 업데이트하는 방법이 있습니까? 이 같은? (작동하지 않음)
carthage update "evgenyneu/moa"
에서 0.12 버전 build
, checkout
그리고 update
선택적인 공간 종속성 목록을 분리 걸릴
다음과 같은 Cartfile의 경우
github "Alamofire/Alamofire"
github "ReactiveX/RxSwift"
하나의 종속성을 업데이트하도록 선택할 수 있습니다.
carthage update Alamofire
또는 여러 종속성
carthage update Alamofire RxSwift
플래그를 추가해야하는 경우 마지막에 추가하십시오.
carthage update Alamofire --platform iOS
Carthage는 이제 단일 종속성 업데이트를 지원합니다. Cartfile에 다음과 같은 내용이있는 경우 :
github "bitstadium/HockeySDK-iOS"
그런 다음 실행하여이 하나의 종속성 만 업데이트 할 수 있습니다.
carthage update HockeySDK-iOS
지금 대답은 '아니오 carthage help update
'입니다. 달리면
Update and rebuild the project's dependencies
[--configuration Release]
the Xcode configuration to build (ignored if --no-build option is present)
[--platform all]
the platform to build for (ignored if --no-build option is present)
[--verbose]
print xcodebuild output inline (ignored if --no-build option is present)
[--no-build]
skip the building of dependencies after updating
[--use-ssh]
use SSH for downloading GitHub repositories
[--use-submodules]
add dependencies as Git submodules
[--no-use-binaries]
check out dependency repositories even when prebuilt frameworks exist (ignored if --no-build option is present)
[--color auto]
whether to apply color and terminal formatting (one of ‘auto’, ‘always’, or ‘never’)
[/path/to/your/app]
the directory containing the Carthage project
보시다시피 업데이트 할 종속성을 하나만 지정하는 옵션에 대한 언급이 없습니다.
당신은해야 REPO 프로젝트에 문제를 열 것을 지원하기 위해 요구.
프레임 워크가 GitHub에 저장되지 않았거나 git
식별자를 사용하는 경우 cartfile
다음과 같이 보입니다.
git "ssh://git@bitbucket.org/teamname/repo-name.git" ~> 1.0
다음 명령을 실행하는 것만 업데이트 할 수 있습니다.
carthage update repo-name
나는 모든 대답을 시도했고, 나를 위해 일시적으로 저장소를 제거 하거나 주석을 달고 실행 한 후에
carthage update --platform ios
Catfile을 이전 상태로 복원 한 후
나는 나를 위해 단일 종속성을 구축하고 기존 종속성과 병합하는 자체 스크립트를 작성했습니다. https://github.com/ruipfcosta/carthage-workarounds 에서 찾을 수 있습니다 .
'Programing' 카테고리의 다른 글
C ++ 구조체를 초기화하는 적절한 방법 (0) | 2020.11.02 |
---|---|
if 문에서 && 연산자 사용 (0) | 2020.11.01 |
JS 객체에 대한 JSON 문자열 (0) | 2020.11.01 |
Java에서 클래스가 Serializable을 올바르게 구현하는지 테스트하는 방법 (단지 Serializable의 인스턴스가 아님) (0) | 2020.11.01 |
리눅스 정규식 찾기 (0) | 2020.11.01 |