Cov txheej txheem:

Yuav ua li cas kuv nruab ib tug tshwj xeeb version ntawm ib tug pod?
Yuav ua li cas kuv nruab ib tug tshwj xeeb version ntawm ib tug pod?

Video: Yuav ua li cas kuv nruab ib tug tshwj xeeb version ntawm ib tug pod?

Video: Yuav ua li cas kuv nruab ib tug tshwj xeeb version ntawm ib tug pod?
Video: Tsis Muaj Peev Xwm Yuav Ua Li Cas 2024, Hlis ntuj nqeg
Anonim

Rau nruab qhov tseeb pod version , omit lub version tus lej tom qab pod npe. Txhawm rau nruab ib qho pod version , qhia pod version tom qab pod npe. Tsis tas li ntawd xwb version ,lub a tshwj xeeb ib qho, nws tseem tuaj yeem siv cov tswv yim tsim nyog: '> 0.1' Ib qho version siab tshaj 0.1.

Ua li no, POD nruab yog dab tsi?

< pod nruab . Qhov no yog yuav tsum tau siv thawj zaug koj xav retrieve lub pods rau qhov project, tab sis kuj txhua zaus koj hloov koj Podfile ntxiv, hloov kho lossis tshem tawm a pod . Txhua lub sijhawm pod nruab hais kom ua yog khiav - thiab downloads thiab nruab tshiab pods - nws sau cov version nws muaj ntsia , rau txhua tus pods , hauv Podfile

Kuv yuav ua li cas thiaj paub tias kuv lub pod yog dab tsi? Koj yuav pom cov version # hauv koj Podfile. xauv tag nrho cov pods koj tam sim no siv hauv koj qhov project. Koj yuav pom cov ntaub ntawv no nyob rau tib qhov chaw raws li koj Podfile. Thaum koj nruab lossis hloov kho lub pod , koj ua tau saib cov versions ntawm ob leeg.

Kuv yuav hloov kho kuv lub Pod version li cas?

Yuav Ua Li Cas Hloov Koj CocoaPods Library Version

  1. Hloov kho cov pod version hauv koj cov ntaub ntawv Podspec. Xyuas kom tseeb tias qhov no phim rau GitHub tag version koj yuav tsim tom ntej.
  2. Thawb tag nrho cov ntaub ntawv tshiab rau koj tus tswv ceg.
  3. Tsim ib lub cim rau koj lub Pod version tshiab thiab thawb nws:
  4. Xyuas seb koj Pod hla kev pov thawj siv:
  5. Thawb koj Pod version tshiab siv lub cev:

Kuv yuav hloov kho kuv CocoaPods li cas rau ib qho version tshwj xeeb?

Yog koj xav tau hloov tshiab CocoaPods mus rau qhov tshiab version Tom qab ntawd, koj tuaj yeem khiav sudo lub pov haum nruab cocoapods dua. CocoaPods yuav qhia koj thaum tshiab version muaj, yog tias koj khiav ib qho ntawm nws cov lus txib.

Pom zoo: