1. 程式人生 > >iOS編譯中pod報錯CocoaPods could not find compatible versions for pod "XXXXX":

iOS編譯中pod報錯CocoaPods could not find compatible versions for pod "XXXXX":

$ pod install --no-repo-update
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "XXXXX":
  In snapshot (Podfile.lock):
    XXXXX (= 1.3.1)

  In Podfile:
    XXXXX

None of your spec sources contain a spec satisfying the dependencies: `XXXXX, XXXXXX (= 1.3.1)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

按提示資訊update後即可,pod repo update