Pod에서 공공 라이브러리를 제작할 때 겪는 문제
Unable to find a pod with name, author, summary, or descriptionmatching ‘SKMoviePlayer’ 코드를 코코아팟(Trunk 방식)에 발표하는 것에 관해서는 더 이상 말하지 않겠습니다. 공식 문서를 볼 수 있고 이해하지 못하면 인터넷에 손잡이 강좌가 많습니다.당시에 내가pod trunk로 계정을 등록했을 때 선택한 사용자 이름과github로 인해.com 위의 불일치로 인해 게시 후 SKMoviePlayer 라이브러리를 검색할 때 줄곧 글의 시작 오류가 발생했다(Unable to find a pod with name, author, summary, or descriptionmatching ‘SKMoviePlayer’).그래서 나는 계정과 메일박스를github의 계정 정보와 일치하도록 바꾸었다.절차는 다음과 같습니다.먼저
pod trunk me 정보는 다음과 같다.(github 위의 창고 계정과 일치하지 않는 것을 발견):bogon:~ Leou$ pod trunk me
- Name: Leou
- Email: [email protected]
- Since: August 19th, 03:20
- Pods:
- SKMoviePlayer
- Sessions:
- August 19th, 03:20 - December 25th, 04:46. IP: 119.57.115.175 Description: MacBook
Pro
- August 21st, 20:34 - December 27th, 20:44. IP: 119.57.115.175
실행
pod trunk register --help 로컬 정보를 변경할 수 있는 것이 있는지 확인하십시오.If you’ve already registered with trunk, you may omit the
NAME (unless you would like to change it).그래서 우리는 $ pod trunk register [email protected] 명령을 통해 계정을 변경할 수 있다. 그러면 github 사용자 이름과 같은 계정을 등록할 수 있다.bogon:desktop Leou$ pod trunk register --help
Usage:
$ pod trunk register EMAIL [NAME]
Register a new account, or create a new session.
If this is your first registration, both an `EMAIL` address and your `NAME` are required. If you’ve already registered with trunk, you may omit the `NAME`
(unless you would like to change it).
It is recommended that you provide a description of the session, so that it will be easier to identify later on. For instance, when you would like to clean-up
your sessions. A common example is to specify the location where the machine,
that you are using the session for, is physically located.
Examples:
$ pod trunk register [email protected] 'Eloy Durán' --description='Personal Laptop'
$ pod trunk register [email protected] --description='Work Laptop'
$ pod trunk register [email protected]
실행
pod trunk register [email protected] 'Eloy Durán' --description='Personal Laptop':pod trunk register [email protected] 'wly314' --description='MacBook Pro'
성공한 후에 메일박스에 가서 확인하면 다른 계정을 등록하고 새 계정으로 전환할 수 있습니다.이후
pod trunk register [email protected] 로컬 세션을 재구성할 수 있으며 메일박스를 확인한 후pod trunk me 정보는 다음과 같습니다.bogon:desktop Leou$ pod trunk me
- Name: wly314
- Email: [email protected]
- Since: August 21st, 20:28
- Pods:
- SKMoviePlayer
- Sessions:
- August 21st, 20:28 - December 27th, 20:34. IP: 119.57.115.175
- August 21st, 21:36 - December 27th, 21:36. IP: 119.57.115.175 Description: MacBook Pro
OK, 문제 해결은 이제 거의 다 됐어요. 로컬은 문제 없어요. 지금 창고를 변경하는 Owner.
창고 변경 Owner:
현재 창고의 Owner: 현재
Leou 계좌에 속합니다.bogon:SKMoviePlayer Leou$ pod trunk info SKMoviePlayer
SKMoviePlayer
- Versions:
- 0.0.2 (2016-08-19 09:27:39 UTC)
- 0.0.3 (2016-08-19 09:55:45 UTC)
- 0.0.4 (2016-08-19 10:46:17 UTC)
- 0.0.5 (2016-08-22 02:40:34 UTC)
- Owners:
- Leou
계정 추가:
+ add-owner Add an owner to a pod 새 계정을pod 라이브러리에 추가합니다.아래와 같이 우리는 두 개의 계정을 보았고 삭제할 수 있다
Leou.bogon:desktop Leou$ pod trunk add-owner SKMoviePlayer [email protected]
- Owners:
- Leou
- wly314 <[email protected]>
계정 삭제
Leou: + remove-owner Remove an owner from a pod아래와 같이 Leou 계정이 삭제되었고 지금 wly314 계정만 남았습니다.bogon:desktop Leou$ pod trunk remove-owner SKMoviePlayer [email protected]
- Owners:
- wly314 <[email protected]>
마지막으로 SKMoviePlayer 파일을 업데이트합니다.
다음과 같습니다.
Pod::Spec.new do |s|
s.name = "SKMoviePlayer"
s.version = "0.0.7"
s.summary = "SKMoviePlayer - AVPlayer"
s.description = < "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/wly314/SKMoviePlayer.git", :tag => "0.0.7" }
s.source_files = "SKMoviePlayer", "*.{h,m}"
s.resources = 'SKMoviePlayer/SKImages/*.{png,jpg}'
s.requires_arc = true
end
제출,github 창고로 전송,pod 라이브러리 업데이트.오케이, 이제 문제가 해결됐어.라이브러리
pod search SKMoviePlayer를 검색하면 검색이 성공했음을 알 수 있습니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.